Backend (.NET 10): - EventFlow CQRS/Event Sourcing with PostgreSQL - GraphQL.NET API with mutations and queries - Custom ReadModelSqlGenerator for snake_case PostgreSQL columns - Hangfire for background job processing - Integration tests with isolated test databases Frontend (React/Vite): - Initial project structure 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
16 lines
442 B
C#
16 lines
442 B
C#
using Books.Api.Domain.Companies;
|
|
using EventFlow.Aggregates;
|
|
using EventFlow.ReadStores;
|
|
|
|
namespace Books.Api.EventFlow.ReadModels;
|
|
|
|
public class CompanyReadModelLocator : IReadModelLocator
|
|
{
|
|
public IEnumerable<string> GetReadModelIds(IDomainEvent domainEvent)
|
|
{
|
|
if (domainEvent is IDomainEvent<CompanyAggregate, CompanyId> typedEvent)
|
|
{
|
|
yield return typedEvent.AggregateIdentity.Value;
|
|
}
|
|
}
|
|
}
|