增加事件类型简单名称,方便配置枚举,知道是什么事件
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-10-12 10:29:03 +08:00
parent f41bf281fe
commit 650f4706a8
5 changed files with 17867 additions and 2 deletions
@@ -274,7 +274,7 @@ public static class DBContext_Ext
private static List<EventStoreRecord> GetStoreEvents(IReadOnlyCollection<DomainEvent> domainEvents)
{
return domainEvents.Select(t => new EventStoreRecord() { Id = t.EventId, EventType = t.GetType().AssemblyQualifiedName, EventData = t.ToJsonStr() }).ToList();
return domainEvents.Select(t => new EventStoreRecord() { Id = t.EventId, EventType = t.GetType().AssemblyQualifiedName, EventTypeName=t.GetType().Name, EventData = t.ToJsonStr() }).ToList();
}
public class EnrollmentConfirmAndPD
{