Add unit test

This commit is contained in:
sunkaixuan 2022-08-19 20:48:16 +08:00
parent 3a2a97f56f
commit 333a32733e
2 changed files with 5 additions and 1 deletions

View File

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

View File

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