mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-24 07:22:57 +08:00
Add demo
This commit is contained in:
parent
bf9e74b809
commit
cc4c65a975
@ -49,9 +49,24 @@ namespace OrmTest
|
|||||||
unit00Z11C12 = it
|
unit00Z11C12 = it
|
||||||
}).ToList();
|
}).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 ####");
|
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 class Unitadfafa1
|
||||||
{
|
{
|
||||||
public bool xx { get; set; }
|
public bool xx { get; set; }
|
||||||
|
Loading…
Reference in New Issue
Block a user