数据绑定IEnumerable <of anonymous =“”type =“”> with entity framework </of>

时间:2010-03-03 19:55:12

标签: entity-framework entity performance

我将此Entity框架查询绑定到gridview并且速度非常慢。延迟是数据绑定。任何解决方案?

使用ctx作为新DBEntities()

Dim PROC =(来自p in context.Table.Include(“RELATION”)_                    其中p.KEY = 1 _                    选择p).First()

Dim q1 =来自r在PROC.relation _          选择New With {_                 r.key,_                 r.field}

grdView.DataSource = q1 grdView.DataBind()

0 个答案:

没有答案