mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-06-28 04:35:29 +08:00
Update mysql demo
This commit is contained in:
parent
9a07de0fb7
commit
0f623cf5cf
@ -70,8 +70,8 @@ namespace OrmTest
|
||||
//If no exist create datebase
|
||||
db.DbMaintenance.CreateDatabase();
|
||||
|
||||
//Use db query
|
||||
var dt = db.Ado.GetDataTable("select 1");
|
||||
//Use sql
|
||||
db.Ado.ExecuteCommand("SET GLOBAL local_infile=1 ");
|
||||
|
||||
//Create tables
|
||||
db.CodeFirst.InitTables(typeof(OrderItem),typeof(Order));
|
||||
|
Loading…
Reference in New Issue
Block a user