mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-30 04:45:54 +08:00
Add unit test
This commit is contained in:
parent
b2956b2bba
commit
7fa4fc2b9d
@ -69,9 +69,16 @@ namespace OrmTest
|
||||
db.CodeFirst.InitTables<Unittest1011, Unittest22221>();
|
||||
db.Insertable(new Unittest1011() { name = "a" }).ExecuteCommand();
|
||||
db.Insertable(new Unittest22221() { name = "a" }).ExecuteCommand();
|
||||
db.CodeFirst.InitTables<Unitrtqqqadfa>();
|
||||
Console.WriteLine("#### CodeFirst end ####");
|
||||
}
|
||||
}
|
||||
[SugarTable("dbo.Unitrtqqqadfa")]
|
||||
public class Unitrtqqqadfa
|
||||
{
|
||||
[SugarColumn(ColumnDescription ="aa")]
|
||||
public string Name { get; set; }
|
||||
}
|
||||
public class Unittest22221
|
||||
{
|
||||
[SugarColumn(DefaultValue = " newsequentialid()")]
|
||||
|
Loading…
Reference in New Issue
Block a user