Exemple #1
0
        public TAggregate OfId(string id)
        {
            var entity = _db.Set <TDataModel>().FirstOrDefault(x => x.Id == Guid.Parse(id));

            //return Tagg
            return(_aggregateFactory.CreateFrom(new Tsnapshot()));
        }