mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-02-27 16:50:33 +08:00
Add demo
This commit is contained in:
@@ -28,6 +28,7 @@ namespace OrmTest
|
|||||||
db.CodeFirst.InitTables<UnitByte1>();
|
db.CodeFirst.InitTables<UnitByte1>();
|
||||||
db.CodeFirst.InitTables<CodeFirstGuid>();
|
db.CodeFirst.InitTables<CodeFirstGuid>();
|
||||||
db.Insertable(new CodeFirstGuid() { Id = Guid.NewGuid() }).ExecuteCommand();
|
db.Insertable(new CodeFirstGuid() { Id = Guid.NewGuid() }).ExecuteCommand();
|
||||||
|
var ids=db.Queryable<CodeFirstGuid>().Select(x => x.Id).ToList();
|
||||||
Console.WriteLine("#### CodeFirst end ####");
|
Console.WriteLine("#### CodeFirst end ####");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user