gpt4 book ai didi

asp.net-mvc-2 - 将 MVC2、EF4 和存储库模式与真正的 SoC 结合使用的完整示例

转载 作者:行者123 更新时间:2023-12-04 17:41:05 26 4
gpt4 key购买 nike

关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。












想改进这个问题?将问题更新为 on-topic对于堆栈溢出。

6年前关闭。




Improve this question




我无法找到在其存储库中使用 EF4 同时遵守 SoC 的 ASP.NET MVC 解决方案示例。

任何人都可以向我提供演示以下内容的示例(开源、书籍、教程、文章等)的引用吗?

  • ASP.NET MVC 2
  • Entity Framework 4
  • 存储库模式
  • 关注点分离(即 BL 未明确引用任何内容)

  • 除了上面的核心技术/模式/原理之外,如果这些示例也涵盖了这些主题,我将非常感激,这样我就可以看到它们可能会如何随着 EF4 发生变化:
  • 多项目解决方案
  • 依赖注入(inject) (Windsor)
  • 单元测试
  • 工作单位

  • 一个例子 covering the use of context interfaces在 Stack Overflow 上,但如果它存在,我正在寻找更全面的东西。

    非常感谢!

    最佳答案

    我遇到了Microsoft - Domain Oriented N-Layered .NET 4.0 App Sample在寻找 DDD 示例时:

    This project implements a very simple business scenario, but it is quite end to end complete regarding DDD N-Layered Architecture style , showing DDD design patterns implementation (Repository, UoW, Entity, Aggregate, Value-Object, etc.), using .NET 4.0 'technology wave' (EF 4.0, WCF 4.0, etc.) and several Archetypes (we'll be growing to many different clients, starting from WPF 4.0 , Silverlight 4.0 , and going to ASP.NET MVC , OBA , Windows Phone during the next future).



    我没有机会深入查看代码,但它看起来是一个非常全面的示例,涵盖了您列出的所有要点,尽管看起来他们使用 Unity for IoC。

    希望这可以帮助。

    关于asp.net-mvc-2 - 将 MVC2、EF4 和存储库模式与真正的 SoC 结合使用的完整示例,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3728006/

    26 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com