Update Core 5.0.4.9

This commit is contained in:
sunkaixuna 2021-12-21 11:14:10 +08:00
parent e709579243
commit cdf16ae917
4 changed files with 5 additions and 5 deletions

View File

@ -30,11 +30,11 @@ namespace SqlSugar
List<SugarParameter> pars;
string where;
LogicFieldName = _ExecuteCommand(LogicFieldName, out db, out where, out pars);
var updateable = db.Updateable<T>().SetColumns(LogicFieldName, "@IsDeleted");
var updateable = db.Updateable<T>().SetColumns(LogicFieldName, true);
if (pars != null)
updateable.UpdateBuilder.Parameters.AddRange(pars);
Convert(updateable as UpdateableProvider<T>);
var result =await updateable.Where(where, new { IsDeleted = true }).ExecuteCommandAsync();
var result =await updateable.Where(where).ExecuteCommandAsync();
return result;
}

View File

@ -2,7 +2,7 @@
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<Version>5.0.4.8</Version>
<Version>5.0.4.9</Version>
<Copyright>sun_kai_xuan</Copyright>
<PackageProjectUrl>https://github.com/sunkaixuan/SqlSugar</PackageProjectUrl>
<PackageLicenseUrl></PackageLicenseUrl>

View File

@ -2,7 +2,7 @@
<package >
<metadata>
<id>SqlSugarCore</id>
<version>5.0.4.8</version>
<version>5.0.4.9</version>
<authors>sunkaixuan</authors>
<owners>Landa</owners>
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>

View File

@ -2,7 +2,7 @@
<package >
<metadata>
<id>SqlSugarCoreNoDrive</id>
<version>5.0.4.8</version>
<version>5.0.4.9</version>
<authors>sunkaixuan</authors>
<owners>Landa</owners>
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>