In which project to add reference to PetaPoco?

六月ゝ 毕业季﹏ 提交于 2019-12-11 17:33:15

问题


I am new to Design Patterns and referring to a book by Scott Millet : Professional ASP.NET Design Patterns.

In the chapter where it discusses "Separation of Concerns", I have added projects accordingly in the Solution Explorer:

Though the book shows examples of Linq2SQL, I want to use PetaPoco Micro-ORM. I therefore installed PetaPoco via Nuget but I am not following whether to add PetaPoco to all the projects or only in the Model and WebUI Project.

This is how NuGet asks for confirmation while adding PetaPoco to projects:


回答1:


You only need it in one project - the Repository one looks like the best candidate in your solution.



来源:https://stackoverflow.com/questions/12288468/in-which-project-to-add-reference-to-petapoco

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