Update Demo

This commit is contained in:
sunkaixuan
2019-03-28 21:11:27 +08:00
parent 5b1d9268d2
commit 5b4539836d

View File

@@ -23,6 +23,8 @@ namespace OrmTest.Demo
db.Queryable<Student>().First(); db.Queryable<Student>().First();
} }
//db.Insertable(new Student() { Name = "masterTest" }).ExecuteCommand();// Config.ConnectionString //db.Insertable(new Student() { Name = "masterTest" }).ExecuteCommand();// Config.ConnectionString
Console.WriteLine("saveable");
GetMasterSlaveInstance().Saveable(new Student() { Name = "a" }).ExecuteCommand();
} }
public static SqlSugarClient GetMasterSlaveInstance() public static SqlSugarClient GetMasterSlaveInstance()