Skip to content

Commit fd7e686

Browse files
committed
Bug in editing models
1 parent ffde435 commit fd7e686

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

MZBase.EntityFrameworkCore/EFCoreStorageBusinessService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ public override async Task ModifyAsync(DomainModel item)
8383
{
8484
//This is to keep these fields intact
8585
var creator = au.CreatedBy;
86-
var lastModifier = au.LastModifiedBy;
86+
var creationTime = au.CreationTime;
8787
currentItem.SetFieldsFromDomainModel(item);
8888
au.CreatedBy = creator;
89-
au.LastModifiedBy = lastModifier;
89+
au.CreationTime = creationTime;
9090
}
9191
else
9292
{

MZBase.EntityFrameworkCore/MZBase.EntityFrameworkCore.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<TargetFramework>net8.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
7-
<Version>2.0.5</Version>
7+
<Version>2.0.6</Version>
88
<AssemblyVersion>1.0.1.1</AssemblyVersion>
99
<Authors>Mahdi Zandakbari</Authors>
1010
<Description>An EFCore implementation of some of the more common interfaces of MZBase.Infrustructure.

0 commit comments

Comments
 (0)