DDD Modules and EF Code First

耗尽温柔 提交于 2019-12-08 06:04:04

问题


I am trying to follow Domain Driven Design using VS.NET 2012 & EF5.

I might have more than 250 Tables (and similar number of POCO Entity classes). If I decide to keep policy/rules/validation, all in one project/.dll, it is gonna be very hefty .dll and multiple developers working on same domain project will make it difficult to work together.

To keep Domain Layer Manageable:

  • I divided it into different Modules. Each module have it's own Domain project & Service Layer.
  • All the modules will have common single Infrastructure project which will have EF CodeFirst DataContext/Mapping classes.
  • Now each domain object belonging to different modules requires to
    refer each other as there could be relationship between these, and It might cause Circular Dependency problem.

Any way to avoid Circular Dependency problem.

来源:https://stackoverflow.com/questions/11502929/ddd-modules-and-ef-code-first

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!