...
【24h】

Letters

机译:字母

获取原文
获取原文并翻译 | 示例
           

摘要

A VSM reader responds to the September 2009 cover story on how to use the Repository pattern to eliminate dependencies in Test-Driven Development.rnThis approach makes a ton of sense to me if you're doing data access in the traditional AD0.NET fashion. But I'm not as clear about how to use it when you're using something like the Entity Framework (EF) for your data access (which is obviously another Microsoft-recommended best practice). It seems to me that you'd need to throw another two layers on top of the EF-generated objects for this to work (the repository plus the object facades), and that sort of misses the point behind letting the EF do the work for you. In other words, I'd appreciate any suggestions on how to use database mocking with the EF.
机译:VSM读者回答了2009年9月的封面故事,内容是如何使用存储库模式消除测试驱动开发中的依赖项。如果您以传统的AD0.NET方式进行数据访问,这种方法对我来说意义非凡。但是,当您使用诸如实体框架(EF)之类的数据进行访问时,我还不清楚如何使用它(这显然是Microsoft推荐的另一种最佳实践)。在我看来,您需要在EF生成的对象之上再添加两层才能使它工作(存储库和对象外观),而这种错失是让EF为您。换句话说,对于任何有关如何在EF中使用数据库模拟的建议,我将不胜感激。

著录项

  • 来源
    《Visual Studio Magazine》 |2009年第10期|6-6|共1页
  • 作者

  • 作者单位
  • 收录信息
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类
  • 关键词

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号