This commit is contained in:
@@ -9,9 +9,10 @@
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Ewide.Core.Arguments</RootNamespace>
|
||||
<AssemblyName>Ewide.Core.Arguments</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<Deterministic>true</Deterministic>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
@@ -32,6 +33,7 @@
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.ComponentModel.DataAnnotations" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
@@ -42,6 +44,7 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="TestArgs.cs" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
25
Api/Ewide.Core/Ewide.Core.Arguments/TestArgs.cs
Normal file
25
Api/Ewide.Core/Ewide.Core.Arguments/TestArgs.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Ewide.Core.DTO
|
||||
{
|
||||
public class TestArgs
|
||||
{
|
||||
[DisplayName("字段1")]
|
||||
[Required(AllowEmptyStrings = false, ErrorMessage = "不可为空")]
|
||||
public string TestFirst { get; set; }
|
||||
|
||||
[DisplayName("字段2")]
|
||||
[RegularExpression(@"^[0-9]\d*$", ErrorMessage = "必须为数字")]
|
||||
public int RegField { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(int.MaxValue, MinimumLength = 5, ErrorMessage = "Name is exceeding the length limit")]
|
||||
public string TestLength { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user