mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-02-27 16:50:33 +08:00
Update mongodb demo
This commit is contained in:
@@ -11,7 +11,7 @@ namespace MongoDbTest
|
||||
{
|
||||
internal static void Init()
|
||||
{
|
||||
var db = DBHelper.DbHelper.GetNewDb();
|
||||
var db = DbHelper.GetNewDb();
|
||||
db.CodeFirst.InitTables<Student>();
|
||||
db.DbMaintenance.TruncateTable<Student>();
|
||||
db.Insertable(new Book() { Price = 1, CreateTime = DateTime.Now }).ExecuteCommand();
|
||||
|
||||
Reference in New Issue
Block a user