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.
|
readModel = await _readModelFactory.CreateAsync(readModelId, cancellationToken) |
|
.ConfigureAwait(false); |
|
mssqlReadModel = readModel as IMssqlReadModel; |
|
if (mssqlReadModel != null) |
|
{ |
|
mssqlReadModel.AggregateId = readModelId; |
|
mssqlReadModel.CreateTime = readModelUpdate.DomainEvents.First().Timestamp; |
|
} |