Relative Content

Tag Archive for separation-of-concerns

Entity Framework and separating DAL from domain entities

If I have a normalized db, it’s unlikely to map 1 to 1 with my domain entities. So I customize my EF entities to fit the domain. But now my EF entities are essentially my domain entities and my DAL is baked into my business objects.

Entity Framework and separating DAL from domain entities

If I have a normalized db, it’s unlikely to map 1 to 1 with my domain entities. So I customize my EF entities to fit the domain. But now my EF entities are essentially my domain entities and my DAL is baked into my business objects.

Decoupling of Model and API (in an .net WEB API Project)

I currently have one separate project for my models, and one separate project for a API application that consumes this model. The intention of the separation is to avoid any outgoing dependencies from the core model to consumers like the API project, enabling me to have a nice layered structure of responsibility.