开发者

EF4 and Code-First: Why do DDD people like it?

The Queen of Entity Framework suggests that EF4 Code-First is really attrac开发者_C百科tive for DDD people. This statement is also made in many other places.

My question is: Why is Code-First more attractive than Model-First? I would have thought that the latter is more in line with the way DDD works?


Model-First refers to the database model. Code-First refers to the domain model in code. DDD will often prefer Code-First because the database model is a persistence concern, which always takes a back seat to the code model in DDD.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜