Browse Source

Add unit test

SqlSugar5
sunkaixuan 2 years ago
parent
commit
333a32733e
  1. 2
      Src/Asp.Net/SqlServerTest/UnitTest/Models/V_PERSON_SCHEDULE_A.cs
  2. 4
      Src/Asp.Net/SqlServerTest/UnitTest/UCustom023.cs

2
Src/Asp.Net/SqlServerTest/UnitTest/Models/V_PERSON_SCHEDULE_A.cs

@ -20,7 +20,7 @@ namespace ICrewApi.Entity
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(SqlParameterDbType = System.Data.DbType.Date)]
[SugarColumn(SqlParameterDbType = System.Data.DbType.Date,SqlParameterSize =10)]
public DateTime? FROM_DATE {get;set;}
/// <summary>

4
Src/Asp.Net/SqlServerTest/UnitTest/UCustom023.cs

@ -29,6 +29,10 @@ namespace OrmTest
{
throw new Exception("unit error");
}
if (result1.Value.First().Size != 10)
{
throw new Exception("unit error");
}
}
catch (Exception ex)
{

Loading…
Cancel
Save