diff --git a/Src/Asp.Net/SqlServerTest/UnitTest/Models/V_PERSON_SCHEDULE_A.cs b/Src/Asp.Net/SqlServerTest/UnitTest/Models/V_PERSON_SCHEDULE_A.cs index 06941aff3..3feee6091 100644 --- a/Src/Asp.Net/SqlServerTest/UnitTest/Models/V_PERSON_SCHEDULE_A.cs +++ b/Src/Asp.Net/SqlServerTest/UnitTest/Models/V_PERSON_SCHEDULE_A.cs @@ -20,7 +20,7 @@ namespace ICrewApi.Entity /// Default: /// Nullable:True /// - [SugarColumn(SqlParameterDbType = System.Data.DbType.Date)] + [SugarColumn(SqlParameterDbType = System.Data.DbType.Date,SqlParameterSize =10)] public DateTime? FROM_DATE {get;set;} /// diff --git a/Src/Asp.Net/SqlServerTest/UnitTest/UCustom023.cs b/Src/Asp.Net/SqlServerTest/UnitTest/UCustom023.cs index 294ab00af..4ad1e852f 100644 --- a/Src/Asp.Net/SqlServerTest/UnitTest/UCustom023.cs +++ b/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) {