mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-21 02:58:05 +08:00
Synchronization code
This commit is contained in:
@@ -135,9 +135,16 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
var entityInfo = Deleteable.EntityInfo;
|
var entityInfo = Deleteable.EntityInfo;
|
||||||
db = Deleteable.Context;
|
db = Deleteable.Context;
|
||||||
|
if (DeleteBuilder.BigDataInValues?.Any() == true)
|
||||||
|
{
|
||||||
|
var sql= db.Queryable<T>().Select("1").AS(nameof(T)).In(DeleteBuilder.BigDataInValues.ToArray()).ToSqlString();
|
||||||
|
var whereIndex = sql.IndexOf(" WHERE ");
|
||||||
|
var whereItem = sql.Substring(whereIndex+7);
|
||||||
|
this.DeleteBuilder.WhereInfos.Add(whereItem);
|
||||||
|
}
|
||||||
|
|
||||||
Check.ExceptionEasy(DeleteBuilder.GetWhereString == null,"Logical Delete requires a Where condition", "逻辑删除需要加Where条件");
|
Check.ExceptionEasy(DeleteBuilder.GetWhereString == null,"Logical Delete requires a Where condition", "逻辑删除需要加Where条件");
|
||||||
|
|
||||||
where = DeleteBuilder.GetWhereString.Substring(5);
|
where = DeleteBuilder.GetWhereString.Substring(5);
|
||||||
pars = DeleteBuilder.Parameters;
|
pars = DeleteBuilder.Parameters;
|
||||||
if (LogicFieldName.IsNullOrEmpty())
|
if (LogicFieldName.IsNullOrEmpty())
|
||||||
|
Reference in New Issue
Block a user