System.Data.Objects.CompiledQuery.Compile() [英] System.Data.Objects.CompiledQuery.Compile()

查看:59
本文介绍了System.Data.Objects.CompiledQuery.Compile()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

CPT5是否有任何东西可以用DbContext支持System.Data.Objects.CompiledQuery.Compile()?有没有更简单的方法来使用CPT4 ObjectContext或者以某种方式公开ObjectContext,因为第一个泛型参数必须是ObjectContext类型。


???


Paul Barton http://posthope.com

解决方案


DbContext没有包括CTP5中的编译查询支持,主要是因为CTP5构建在现有的.NET Framework组件之上,看起来我们需要更改核心实体框架位以便基于DbContext / DbSet编译查询。当我们在2011年第一季度进行RTM时,我们只看
查看我们的选项以获得编译查询的支持但尚无明确答案。


~Rowan


Does CPT5 have anything to support System.Data.Objects.CompiledQuery.Compile() with DbContext? Is there an easier way to do this then with CPT4 ObjectContext or do you somehow expose ObjectContext as the first generic parameter must be of type ObjectContext.

???


Paul Barton http://posthope.com

解决方案

Hi,

DbContext does not include compiled query support in CTP5, mainly because CTP5 builds on top of existing .NET Framework components and it looks like we need to change core Entity Framework bits in order to compile queries based on DbContext/DbSet. We're looking at our options to have support for compiled queries when we RTM in Q1 of 2011 but no definite answers yet.

~Rowan


这篇关于System.Data.Objects.CompiledQuery.Compile()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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