mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Update mysql demo
This commit is contained in:
parent
858e6a7248
commit
0a0e961371
@ -24,6 +24,10 @@ namespace OrmTest
|
||||
// 如果数据库不存在,则创建数据库
|
||||
db.DbMaintenance.CreateDatabase();
|
||||
|
||||
//support bulkcopy
|
||||
//支持大数据操作
|
||||
db.Ado.ExecuteCommand("SET GLOBAL local_infile=1");
|
||||
|
||||
// Initialize tables based on UserInfo001 entity class
|
||||
// 根据 UserInfo001 实体类初始化表
|
||||
db.CodeFirst.InitTables<UserInfo001>();
|
||||
|
Loading…
Reference in New Issue
Block a user