问题描述
我是新的设计模式,并引用Scott Millet的一本书:。
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:
虽然本书展示了Linq2SQL的例子,我想使用PetaPoco Micro-ORM。因此,我通过Nuget安装了PetaPoco,但是我不关注是否将PetaPoco添加到所有项目中,或者仅在Model和WebUI项目中。
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.
这是NuGet如何要求确认而将PetaPoco添加到项目中:
This is how NuGet asks for confirmation while adding PetaPoco to projects:
推荐答案
您只需要在一个项目中 - 存储库看起来像您的解决方案中最佳候选人。
You only need it in one project - the Repository one looks like the best candidate in your solution.
这篇关于在哪个项目中添加引用PetaPoco?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!