Skip to content

dogcane/ECO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ECO

ECO is a library that contains some base classes for DDD-development. It helps to avoid the creation of standard classes like Entity, AggregateRoot or ValueObject and it is based on the concept of "persistent unit".

Each persistent unit can contains different aggregates and ECO will manage the different contexts.

The main components of ECO are:

  • Persistence Contexts
  • Repositories
  • Entity & Aggregates

A simple snipplet:

using (var dataContext = persistenceUnitFactory.OpenDataContext())
using (var transactionContext = dataContext.BeginTransation())
{
    IEntityRepository myRepository = new EntityRepository(dataContext);
    Entity myEntity = new Entity() { Name = "My Name", Surname = "MySurname" };
    await myRepository.AddAsync(myEntity);
    dataContext.SaveChanges();
    transactionContext.Commit();
}

Check the Getting started guide or go to the Summary of the docs.