Search code examples
.netormdomain-driven-designsolid-principles

SOLID DDD ORM request (to use clean entities and repositories) for .NET


Is there a ORM that would

  • leave my entities classes clean, withouth any attributes for properties and classes
  • would not be ActiveRecord pattern so it should not have entity.Save/Delete etc.

optional: able to execute stored procedures and parse the result into entityies


Solution

  • Sounds like NHibernate is what you need. This uses a mapping file (in XML) to map the properties of classes to the database. Entities are managed through a SessionManager interface.

    Documentation is here.

    A mapping file can also map from a stored procedure to your persistent objects. Details here.