mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-25 02:09:12 +08:00
Optimized code
This commit is contained in:
@@ -200,7 +200,7 @@ namespace SqlSugar
|
|||||||
var tempTableName = "TempDiff" + DateTime.Now.ToString("yyMMssHHmmssfff");
|
var tempTableName = "TempDiff" + DateTime.Now.ToString("yyMMssHHmmssfff");
|
||||||
var oldTableName = this.Context.EntityMaintenance.GetEntityInfo(type).DbTableName;
|
var oldTableName = this.Context.EntityMaintenance.GetEntityInfo(type).DbTableName;
|
||||||
var db = new SqlSugarProvider(UtilMethods.CopyConfig(this.Context.CurrentConnectionConfig));
|
var db = new SqlSugarProvider(UtilMethods.CopyConfig(this.Context.CurrentConnectionConfig));
|
||||||
UtilMethods.IsNullReturnNew(db.CurrentConnectionConfig.ConfigureExternalServices);
|
db.CurrentConnectionConfig.ConfigureExternalServices=UtilMethods.IsNullReturnNew(db.CurrentConnectionConfig.ConfigureExternalServices);
|
||||||
db.CurrentConnectionConfig.ConfigureExternalServices.EntityNameService += (x, p) =>
|
db.CurrentConnectionConfig.ConfigureExternalServices.EntityNameService += (x, p) =>
|
||||||
{
|
{
|
||||||
p.IsDisabledUpdateAll = true;//Disabled update
|
p.IsDisabledUpdateAll = true;//Disabled update
|
||||||
|
|||||||
Reference in New Issue
Block a user