Rather than using raw SQL, we can use an EF DbContext to allow clients to deal with entities directly.
This would help when writing queries against the read model database. The same entities can be used.
One thing to be aware of is performance. If we're hydrating a read model from many events, we'll probably need to look into bulk operations.
Rather than using raw SQL, we can use an EF DbContext to allow clients to deal with entities directly.
This would help when writing queries against the read model database. The same entities can be used. One thing to be aware of is performance. If we're hydrating a read model from many events, we'll probably need to look into bulk operations.