DDD with EF Code First - how to put them together?

前端 未结 5 508
陌清茗
陌清茗 2021-01-31 05:30

I am learning DDD development for few days, and i start to like it.

I (think i) understand the principle of DDD, where your main focus is on business objects, where you

5条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-31 06:05

    Recently I've done similar project. I was following this tutorial: link And I've done it this way: I've created Blank solution, added projects: Domain, Service and WebUI.

    Simply said in domain I've put model (for example classes for EF code first, methods etc.) Service was used for domain to communicate with world (WebUI, MobileUI, other sites etc.) using asp.net webapi WebUi was actually MVC application (but model was in domain so it was mostly VC)

    Hope I've helped

提交回复
热议问题