Browse Source

Code optimization

pull/30/head
sunkaixuan 2 years ago
parent
commit
7a3903a2d2
  1. 2
      Src/Asp.Net/SqlSugar/Abstract/DeleteProvider/DeleteableProvider.cs
  2. 2
      Src/Asp.Net/SqlSugar/SpliteTable/SplitTableContext.cs

2
Src/Asp.Net/SqlSugar/Abstract/DeleteProvider/DeleteableProvider.cs

@ -436,7 +436,7 @@ namespace SqlSugar
var lamResult = DeleteBuilder.GetExpressionValue(inField, ResolveExpressType.FieldSingle);
var fieldName = lamResult.GetResultString();
tempPrimaryKeys = new List<string>() { fieldName };
var result = In(primaryKeyValue);;
var result = In(primaryKeyValue);
tempPrimaryKeys = null;
return this;
}

2
Src/Asp.Net/SqlSugar/SpliteTable/SplitTableContext.cs

@ -26,7 +26,7 @@ namespace SqlSugar
}
public string[] GetTableNames(SplitType splitType)
{
List<string> result = new List<string>();;
List<string> result = new List<string>();
foreach (var item in Items)
{
result.Add(Helper.GetTableName(Helper.GetValue(splitType, item)));

Loading…
Cancel
Save