Compare commits

...

2 Commits

Author SHA1 Message Date
jozsef.b@aycode.com 4f979eec96 Add SignalRCrudTags 2024-06-05 16:00:46 +02:00
jozsef.b@aycode.com 338f630f10 fixes 2024-06-04 15:32:50 +02:00
2 changed files with 12 additions and 1 deletions

View File

@ -67,7 +67,6 @@ public abstract class AcDbContextBase : DbContext
var utcNow = DateTime.UtcNow;
foreach (var entityEntry in entries)
{
//entityEntry.DebugView.LongView
if (entityEntry.Entity is ITimeStampModified timeStampModified)
timeStampModified.Modified = utcNow;
@ -80,6 +79,7 @@ public abstract class AcDbContextBase : DbContext
continue;
}
//entityEntry.State = EntityState.Unchanged;
entityEntry.Property(nameof(timeStampCreated.Created)).IsModified = false;
}
}

View File

@ -0,0 +1,11 @@
namespace AyCode.Services.SignalRs;
public sealed class SignalRCrudTags(int getAllTag, int getItemTag, int addTag, int updateTag, int removeTag)
{
public int GetAllMessageTag { get; } = getAllTag;
public int GetItemMessageTag { get; } = getItemTag;
public int AddMessageTag { get; } = addTag;
public int UpdateMessageTag { get; } = updateTag;
public int RemoveMessageTag { get; } = removeTag;
}