mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Add demo
This commit is contained in:
parent
bf9e74b809
commit
cc4c65a975
@ -48,10 +48,25 @@ namespace OrmTest
|
||||
{
|
||||
unit00Z11C12 = it
|
||||
}).ToList();
|
||||
db.CodeFirst.InitTables<Unitadfafa1>();
|
||||
db.CodeFirst.InitTables<Unitadfafa1>();
|
||||
var db2 = NewUnitTest.Db;
|
||||
db2.CodeFirst.InitTables<OneTable>();
|
||||
db2.CodeFirst.InitTables<ONETABLE>();
|
||||
Console.WriteLine("#### CodeFirst end ####");
|
||||
}
|
||||
}
|
||||
[SugarTable(null, "测试表")]
|
||||
public class OneTable
|
||||
{
|
||||
[SqlSugar.SugarColumn]
|
||||
public int OneFiled { get; set; }
|
||||
}
|
||||
[SugarTable(null, "测试表")]
|
||||
public class ONETABLE
|
||||
{
|
||||
[SqlSugar.SugarColumn]
|
||||
public string OneFiled { get; set; }
|
||||
}
|
||||
public class Unitadfafa1
|
||||
{
|
||||
public bool xx { get; set; }
|
||||
|
Loading…
Reference in New Issue
Block a user