我喜欢保持项目的结构尽可能干净。样本:
--BlogApp.sln
--BlogApp.Data
BlogModel.edmx (the EF mappings)
Post.cs (I end up having partial classes in here with attributes)
--BlogApp.Domain
--Entities
Post.cs (I would like to have my POCOs here with all its additional logic)
--Repositories
PostsRepository.cs
--BlogApp.Ui
(standard MVC structure)
当我使用 EF 作为我的 ORM 时,我最终陷入了混乱。有人可以建议一些“干净”的方式来构建项目吗?或者,也许您可以建议一些最常用的标准项目结构。