mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-11-07 18:04:55 +08:00
Update Core 5.0.4.9
This commit is contained in:
@@ -30,11 +30,11 @@ namespace SqlSugar
|
|||||||
List<SugarParameter> pars;
|
List<SugarParameter> pars;
|
||||||
string where;
|
string where;
|
||||||
LogicFieldName = _ExecuteCommand(LogicFieldName, out db, out where, out pars);
|
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)
|
if (pars != null)
|
||||||
updateable.UpdateBuilder.Parameters.AddRange(pars);
|
updateable.UpdateBuilder.Parameters.AddRange(pars);
|
||||||
Convert(updateable as UpdateableProvider<T>);
|
Convert(updateable as UpdateableProvider<T>);
|
||||||
var result =await updateable.Where(where, new { IsDeleted = true }).ExecuteCommandAsync();
|
var result =await updateable.Where(where).ExecuteCommandAsync();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>netstandard2.1</TargetFramework>
|
<TargetFramework>netstandard2.1</TargetFramework>
|
||||||
<Version>5.0.4.8</Version>
|
<Version>5.0.4.9</Version>
|
||||||
<Copyright>sun_kai_xuan</Copyright>
|
<Copyright>sun_kai_xuan</Copyright>
|
||||||
<PackageProjectUrl>https://github.com/sunkaixuan/SqlSugar</PackageProjectUrl>
|
<PackageProjectUrl>https://github.com/sunkaixuan/SqlSugar</PackageProjectUrl>
|
||||||
<PackageLicenseUrl></PackageLicenseUrl>
|
<PackageLicenseUrl></PackageLicenseUrl>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<package >
|
<package >
|
||||||
<metadata>
|
<metadata>
|
||||||
<id>SqlSugarCore</id>
|
<id>SqlSugarCore</id>
|
||||||
<version>5.0.4.8</version>
|
<version>5.0.4.9</version>
|
||||||
<authors>sunkaixuan</authors>
|
<authors>sunkaixuan</authors>
|
||||||
<owners>Landa</owners>
|
<owners>Landa</owners>
|
||||||
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>
|
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<package >
|
<package >
|
||||||
<metadata>
|
<metadata>
|
||||||
<id>SqlSugarCoreNoDrive</id>
|
<id>SqlSugarCoreNoDrive</id>
|
||||||
<version>5.0.4.8</version>
|
<version>5.0.4.9</version>
|
||||||
<authors>sunkaixuan</authors>
|
<authors>sunkaixuan</authors>
|
||||||
<owners>Landa</owners>
|
<owners>Landa</owners>
|
||||||
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>
|
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>
|
||||||
|
|||||||
Reference in New Issue
Block a user