IDbSet接口的命名 [英] Naming of the IDbSet interface

查看:37
本文介绍了IDbSet接口的命名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我喜欢代码优先的CTP5。 


我现在可以轻松地制作一个IEntityContext,以便在整个应用程序中使用,并轻松制作一个具体的感谢DbContext实现它。


对我来说没有意义的一件事就是IDbSet接口的名称。它似乎正好让我删除对数据库的依赖(例如,促进内存中测试)。 


这是整个应用程序中可见的公共接口和测试;它没有(并且在这种情况下,有针对性地不应该!)与"db"s有任何关系......


也许我误解了什么?如果没有,我希望在发布之前这会发生变化吗? (IEntitySet是显而易见的选择!)


谢谢,并保持良好的工作!

解决方案


谢谢,这是很好的反馈,不是我们以前考虑过的。该名称不再是DbSet上的界面。


我们将在RTM之前重新考虑该名称。


~Rowan


Hi chaps, I'm loving the code-first CTP5. 

I can now easily make an IEntityContext for use throughout my application, and easily make a concrete implementation of it thanks to DbContext.

One thing that doesn't make sense to me is the name of the IDbSet interface. It seems that it exists precisely to let me remove the dependency on the database (facilitating, for example, in-memory testing). 

This is the public interface that's visible throughout the application and tests; it doesn't (and in this case, pointedly shouldn't!) have anything to do with "db"s.....

Maybe I misunderstand something? If not, I hope this is going to change before the release? (IEntitySet is the obvious choice!)

Thanks, and keep up the good work!

解决方案

Hi,

Thank you, this is great feedback and isn't something we had considered before. The name fell out of it being an interface on DbSet.

We'll reconsider the name before we RTM.

~Rowan


这篇关于IDbSet接口的命名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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