mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Add unit test
This commit is contained in:
parent
17bffcfb65
commit
fcfe88799b
@ -70,9 +70,16 @@ namespace OrmTest
|
||||
}).Where(it => it.Id != null).ExecuteCommand();
|
||||
db.CodeFirst.InitTables<CodeFirstChartest>();
|
||||
db.Queryable<CodeFirstChartest>().Where(it => it.Test == 's').ToList();
|
||||
db.CodeFirst.InitTables<CodeFloatddfa1a1>();
|
||||
db.Insertable(new CodeFloatddfa1a1() { xx = (float)11.1 }).ExecuteCommand();
|
||||
var list7 = db.Queryable<CodeFloatddfa1a1>().ToList();
|
||||
Console.WriteLine("#### CodeFirst end ####");
|
||||
}
|
||||
}
|
||||
public class CodeFloatddfa1a1
|
||||
{
|
||||
public float xx { get; set; }
|
||||
}
|
||||
public class CodeFirstChartest
|
||||
{
|
||||
[SugarColumn(ColumnDataType ="varchar(1)")]
|
||||
|
Loading…
Reference in New Issue
Block a user