-
-
Notifications
You must be signed in to change notification settings - Fork 469
Open
Description
When deriving from IMssqlReadModel, the AggregateId property is set, but usage of this interface is obsolete. However, in that case, no equivalent functionality exists, i.e. the property annotated with SqlReadModelIdentityColumnAttribute (or AggregateId as fallback) is never populated.
EventFlow/Source/EventFlow.MsSql/ReadStores/MssqlReadModelStore.cs
Lines 128 to 135 in 4c070a0
| readModel = await _readModelFactory.CreateAsync(readModelId, cancellationToken) | |
| .ConfigureAwait(false); | |
| mssqlReadModel = readModel as IMssqlReadModel; | |
| if (mssqlReadModel != null) | |
| { | |
| mssqlReadModel.AggregateId = readModelId; | |
| mssqlReadModel.CreateTime = readModelUpdate.DomainEvents.First().Timestamp; | |
| } |
Metadata
Metadata
Assignees
Labels
No labels