This commit is contained in:
ky_sunl
2021-03-16 05:49:42 +00:00
parent 67839640ff
commit 1688c9f8d1
93 changed files with 11945 additions and 166 deletions

View File

@@ -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>

View 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; }
}
}