I read Introduction to CQRS article and I find it very useful.
Code in project which follows this article uses InMemoryEventStorage
to demonstrate EventStore
and adding and retrieving events.
I'm aware that this is for demo purposes only but I will like to see on this example how can be built more productive solution using ravenDb or mssql database.
this InMemoryEventStorage
implements
public interface IEventStorage
{
IEnumerable<Event> GetEvents(Guid aggregateId);
void Save(AggregateRoot aggregate);
T GetMemento<T>(Guid aggregateId) where T : BaseMemento;
void SaveMemento(BaseMemento memento);
}
so once more, how could you build ravenDb or mssql db event storage based on example given at link above?