Update mysql demo

This commit is contained in:
sunkaixuan 2023-11-11 13:44:26 +08:00
parent 858e6a7248
commit 0a0e961371

View File

@ -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>();