In which project to add reference to PetaPoco?

2019-08-18 05:37发布

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:

enter image description here

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:

enter image description here

1条回答
迷人小祖宗
2楼-- · 2019-08-18 06:09

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

查看更多
登录 后发表回答