mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 02:32:50 +08:00
- 修复 聚合根仓储 InsertOrUpdate 重复插入的 bug;
This commit is contained in:
parent
95ceb0245b
commit
02b16ba8bd
@ -165,7 +165,7 @@ namespace FreeSql
|
|||||||
if (flagExists == true)
|
if (flagExists == true)
|
||||||
{
|
{
|
||||||
var affrows = await UpdateAsync(entity, cancellationToken);
|
var affrows = await UpdateAsync(entity, cancellationToken);
|
||||||
if (affrows > 0) return entity;
|
return entity;
|
||||||
}
|
}
|
||||||
if (table.Primarys.Where(a => a.Attribute.IsIdentity).Count() == table.Primarys.Length)
|
if (table.Primarys.Where(a => a.Attribute.IsIdentity).Count() == table.Primarys.Length)
|
||||||
{
|
{
|
||||||
|
@ -218,7 +218,7 @@ namespace FreeSql
|
|||||||
if (flagExists == true)
|
if (flagExists == true)
|
||||||
{
|
{
|
||||||
var affrows = Update(entity);
|
var affrows = Update(entity);
|
||||||
if (affrows > 0) return entity;
|
return entity;
|
||||||
}
|
}
|
||||||
if (table.Primarys.Where(a => a.Attribute.IsIdentity).Count() == table.Primarys.Length)
|
if (table.Primarys.Where(a => a.Attribute.IsIdentity).Count() == table.Primarys.Length)
|
||||||
{
|
{
|
||||||
|
@ -18,21 +18,23 @@
|
|||||||
<SignAssembly>true</SignAssembly>
|
<SignAssembly>true</SignAssembly>
|
||||||
<AssemblyOriginatorKeyFile>key.snk</AssemblyOriginatorKeyFile>
|
<AssemblyOriginatorKeyFile>key.snk</AssemblyOriginatorKeyFile>
|
||||||
<DelaySign>false</DelaySign>
|
<DelaySign>false</DelaySign>
|
||||||
<Version>1.0.1</Version>
|
<Version>1.0.2</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="../../logo.png" Pack="true" PackagePath="\" />
|
<None Include="../../logo.png" Pack="true" PackagePath="\" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="FreeSql.DbContext" Version="3.2.682" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|netstandard2.0|AnyCPU'">
|
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|netstandard2.0|AnyCPU'">
|
||||||
<DocumentationFile>FreeSql.Extensions.AggregateRoot.xml</DocumentationFile>
|
<DocumentationFile>FreeSql.Extensions.AggregateRoot.xml</DocumentationFile>
|
||||||
<WarningLevel>3</WarningLevel>
|
<WarningLevel>3</WarningLevel>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
|
||||||
<ProjectReference Include="..\..\FreeSql.DbContext\FreeSql.DbContext.csproj" />
|
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
<PropertyGroup Condition="'$(TargetFramework)' == 'net40'">
|
<PropertyGroup Condition="'$(TargetFramework)' == 'net40'">
|
||||||
<DefineConstants>net40</DefineConstants>
|
<DefineConstants>net40</DefineConstants>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user