mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 10:08:19 +08:00
-
This commit is contained in:
@@ -106,10 +106,6 @@ namespace SqlSugar
|
|||||||
protected virtual void Execute(Type entityType)
|
protected virtual void Execute(Type entityType)
|
||||||
{
|
{
|
||||||
var entityInfo = this.Context.EntityMaintenance.GetEntityInfo(entityType);
|
var entityInfo = this.Context.EntityMaintenance.GetEntityInfo(entityType);
|
||||||
if (entityInfo.IsDisabledUpdateAll)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (this.DefultLength > 0)
|
if (this.DefultLength > 0)
|
||||||
{
|
{
|
||||||
foreach (var item in entityInfo.Columns)
|
foreach (var item in entityInfo.Columns)
|
||||||
@@ -125,6 +121,10 @@ namespace SqlSugar
|
|||||||
entityInfo.DbTableName = tableName;
|
entityInfo.DbTableName = tableName;
|
||||||
entityInfo.Columns.ForEach(it => { it.DbTableName = tableName; });
|
entityInfo.Columns.ForEach(it => { it.DbTableName = tableName; });
|
||||||
var isAny = this.Context.DbMaintenance.IsAnyTable(tableName);
|
var isAny = this.Context.DbMaintenance.IsAnyTable(tableName);
|
||||||
|
if (isAny&&entityInfo.IsDisabledUpdateAll)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (isAny)
|
if (isAny)
|
||||||
ExistLogic(entityInfo);
|
ExistLogic(entityInfo);
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user