我需要了解更多 - 在哪里寻找好消息? [英] I need to know more - where to look for good info?

查看:123
本文介绍了我需要了解更多 - 在哪里寻找好消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我得出的结论是,我正在研究的C#MVC 5项目(使用实体框架,代码优先和迁移)已经变得太大了模板外的结构。



我正在尝试建立一个网站,公共部分位于根或其中VS MVC 5模板上的站点构建将驻留。在此根中,将处理身份验证逻辑。该计划是建立一系列放置在区域中的模块,每个模块都提供一组特定的功能,例如:一个项目管理工具,一个会计工具,一个博客工具 - 所有相当基本或简单的工具,我随着时间的推移开发出来的兴趣供公众使用,但所有工具都以我的网站托管。这些领域的主要规则是除了认证和授权之外,他们不会彼此分享任何东西。



因此,我正在考虑实施以下方面: br />



  • 存储库和工作单元
  • 用于在模型和视图模型之间进行映射的映射工具(最好是ExpressMapper)。 / li>
  • 使用IOC容器(最好是Unity)进行依赖注入


有人能指出我对个别主题的好视频,文章或博客的方向如果一次覆盖多个受试者,则高于或甚至更好。参考代码样本会非常好,但是我担心要求太多了吗?



提前感谢您的意见。



我尝试了什么:



我已经在互联网上浏览了好的视频,博客文章和文章以某种方式描述这一点,这可以理解并因此在我的项目中实现。不幸的是,我没有找到任何非常好的信息,我已经能够拼凑到一个包含上述所有内容的工作基础,构建我的代码。

解决方案

这些似乎是关于这个主题的动手文章:

关于依赖性倒置原理,控制和依赖注入反转的绝对初学者教程 [ ^ ]

C#中的控制,依赖注入和服务定位器的反转CsharpStar [ ^ ]

控制和依赖注入反转:使用Windsor Container [ ^

Hi
I’ve come to the conclusion that a C# MVC 5 project (using Entity framework, code first and migrations) I’m working on has grown too big to fit the "out of the template" structure.

I’m trying to build a site where the public part at the site is placed in the "root" or where a site build on the VS MVC 5 template would reside. In this root authentication logic will be handled. The plan is to build a series of modules placed in areas, that each offers a specific set of functionality e.g. a project management tool, an accounting tool, blog tool – all fairly basic or simple tools that I over time develop out of interest for public use, but all hosted with my site as root. The main rule for the areas is that they don’t share anything with each other except authentication and authorization.

I’m therefore looking into implementing the following things:


  • Repositories and "Unit Of Work"
  • A mapping tool (preferably ExpressMapper) for mapping between models and viewmodels.
  • Dependency injection using an IOC container (preferably Unity)

Can anyone point me in the direction of good videos, articles or blogposts on the individual subjects above or even better if more than one of the subjects are covered at once. References to code samples would be really nice, but I fear that’s too much to ask for?

Thanks in advance for your input.

What I have tried:

I’ve scoured the internet for good videos, blogposts and articles that describe this in a way a novice to these this can understand and hence implement in my project. Unfortunately I haven’t found any really good info that I’ve been able to piece together to a working "base" that incorporates all of the above, upon which to build my code.

解决方案

These seem like hands-on articles on the subject:
An Absolute Beginner's Tutorial on Dependency Inversion Principle, Inversion of Control and Dependency Injection[^]
Inversion of Control, Dependency Injection and Service Locator in C# – CsharpStar[^]
Inversion of Control and Dependency Injection: Working with Windsor Container[^]


这篇关于我需要了解更多 - 在哪里寻找好消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆