mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 01:58:13 +08:00
Update demo
This commit is contained in:
@@ -113,7 +113,10 @@ namespace KdbndpTest.SqlServerDemo
|
||||
private static void InitDatas(SqlSugarClient Db)
|
||||
{
|
||||
Db.DbMaintenance.CreateDatabase();
|
||||
Db.CodeFirst.InitTables<Order>();
|
||||
if (!Db.DbMaintenance.IsAnyTable(Db.EntityMaintenance.GetTableName<Order>(),false))
|
||||
{
|
||||
Db.CodeFirst.InitTables<Order>();
|
||||
}
|
||||
}
|
||||
|
||||
private static void InsertDemo(SqlSugarClient Db)
|
||||
|
Reference in New Issue
Block a user