阅读背景:

将实体框架实体集合从DAL传递到业务层的最佳方法是什么?

来源:互联网 

I have a DAL that makes calls to my Entity Framework Model. The calls return things like IOrderedQueryable and IQueryable objects. Should I convert them to something more universal in my DAL, such as List? But I assume that if I don't need to enumerate through the entire collection, this could be wasteful... So whats the best approach? Just have the DAL return the IQueryable<> and convert it when I need to? Or is there something else more flexible? Thanks in Advance.I have a DAL that makes calls to my Entity Fram




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: