【发布时间】:2008-11-04 16:22:00
【问题描述】:
我想使用 ADO.NET Entity Framework 进行数据访问,为我的业务逻辑扩展它的对象,并将这些对象绑定到我的 UI 中的控件。
如the answers to another question 中所述,我无法使用部分类扩展 ADO.NET Entity Framework 对象并在 LINQ 查询中使用我的自定义方法。
ADO.NET Entity Framework partial class http://img221.imageshack.us/img221/7329/clientsq0.gif
我不希望 Intellisense 中出现会产生运行时错误的方法!我应该如何构建我的应用程序以避免这个问题?
VB.NET LINQ with custom method http://img83.imageshack.us/img83/1580/iswashingtongn0.gif
我需要一个数据访问客户端类和一个业务逻辑客户端类吗?这似乎会让人感到困惑。
【问题讨论】:
标签: .net linq entity-framework linq-to-entities