Browse Source

Update unit test

pull/14/MERGE
sunkaixuan 3 years ago
parent
commit
dfd943ccf4
  1. 12
      Src/Asp.Net/MySqlTest/UnitTest/UCustom06.cs

12
Src/Asp.Net/MySqlTest/UnitTest/UCustom06.cs

@ -23,6 +23,18 @@ namespace OrmTest
).ToList();
Check.Exception(list.First().Job.Company != "1", "unit error");
db.CodeFirst.InitTables<Unit08adfa>();
db.Insertable(new Unit08adfa
{
Id = null
}).ExecuteCommand();
var list4=db.Queryable<Unit08adfa>().ToList();
}
public class Unit08adfa
{
[SugarColumn(IsNullable =true,ColumnDataType ="char(36)")]
public Guid? Id { get; set; }
}
public class Unit06
{

Loading…
Cancel
Save