从EF4.0迁移到EF5.0以提高TPT架构的请求性能时出现问题 [英] Issue when migrating from EF4.0 to EF5.0 to improve request performance on a TPT schema

查看:55
本文介绍了从EF4.0迁移到EF5.0以提高TPT架构的请求性能时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将我的项目从VS2010切换到VS2012,将.Net4.0切换到.Net4.5。

此迁移的一个目标(包括其他)是利用使用TPT架构进行SQL生成的重大改进。

I'm switching my project from VS2010 to VS2012 and .Net4.0 to .Net4.5.
One goal of this migration (among others) is to take advantage of the major improvement in SQL generation with a TPT schema.

我在我的VS2012 / .Net4.5项目中添加了EntityFramework 5 NuGet包并重新编译了解决方案,但我看不出任何改进请求执行时间。实际上,我设法看到生成的请求与引用EF 5.0之前生成的
完全相同。在调试会话中看到EntityFramework.dll甚至没有在运行时加载时我真的很失望。

I added EntityFramework 5 NuGet package to my VS2012/.Net4.5 project and recompiled the solution but I can't see any improvement in terms of request execution time. Actually, I managed to see that the generated request is exactly the same as the one generated before referenceing EF 5.0. I've been really disapointed to see during a debug session that EntityFramework.dll wasn't even loaded at runtime.

使用EF4.0,我的app.config中没有配置部分文件和所有内容都是由代码手动初始化的。 EF 5.0 NuGet包在app.config中添加了一些stuuf,但似乎它在我的情况下没有效果。

With EF4.0, I had no configuration section in my app.config file and everything was initialized manually by code. the EF 5.0 NuGet package added some stuuf in app.config but it seems that it has no effect in my case.

我错过了什么?

问候,

Nicolas

Regards,
Nicolas

推荐答案

嗨Nicolas,

欢迎来到MSDN论坛。

请参阅  这篇文章,了解如何将现有项目升级到EF5:
http://msdn.microsoft.com/en-us/magazine/jj618295.aspx

Please refer to  this article about how to upgrade existing projects to EF5: http://msdn.microsoft.com/en-us/magazine/jj618295.aspx

请在您更新的所有项目中验证EntityFramework.dll版本。

最好的问候,


这篇关于从EF4.0迁移到EF5.0以提高TPT架构的请求性能时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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