Compare commits
2 Commits
4840aedba4
...
4f979eec96
| Author | SHA1 | Date |
|---|---|---|
|
|
4f979eec96 | |
|
|
338f630f10 |
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue