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