Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
刚刚被介绍给 ASP.NET 提供程序模型作为一种潜在的数据访问技术。我自己的想法是使用 LINQ 存储库,但要保持开放的心态。
有什么想法吗?
谢谢
ASP.NET 是 .NET 的 Web 框架,与数据访问无关。
它确实将提供者模型用于许多功能,包括成员资格。也许您将其与数据访问混为一谈?
如果您有兴趣使用提供者模型在编译后使用不同的实现切换您的存储库,您需要查看依赖注入/控制反转框架,例如 MS 的 Unity。