mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 13:06:50 +08:00
Update demo
This commit is contained in:
parent
1965aa1a77
commit
3a314941b7
@ -28,6 +28,11 @@ namespace OrmTest
|
|||||||
{
|
{
|
||||||
IsAutoToUpper = false
|
IsAutoToUpper = false
|
||||||
};
|
};
|
||||||
|
if (db.DbMaintenance.IsAnyTable("CodeFirstNoUpper4",false))
|
||||||
|
{
|
||||||
|
db.DbMaintenance.DropTable<CodeFirstNoUpper4>();
|
||||||
|
}
|
||||||
|
db.CodeFirst.InitTables<CodeFirstNoUpper4>();
|
||||||
db.CodeFirst.InitTables<CodeFirstNoUpper4>();
|
db.CodeFirst.InitTables<CodeFirstNoUpper4>();
|
||||||
db.Insertable(new CodeFirstNoUpper4() { Id = Guid.NewGuid() + "", Name = "a" }).ExecuteCommand();
|
db.Insertable(new CodeFirstNoUpper4() { Id = Guid.NewGuid() + "", Name = "a" }).ExecuteCommand();
|
||||||
var list2 = db.Queryable<CodeFirstNoUpper4>().Where(it => it.Id != null).ToList();
|
var list2 = db.Queryable<CodeFirstNoUpper4>().Where(it => it.Id != null).ToList();
|
||||||
|
Loading…
Reference in New Issue
Block a user