EntityFramework Cache Tracing 组件的几个错误。 EFCachingProvider ,EFProviderWrapperToolkit , EFTracingProvider
1.Error: The invoked member is not supported in a dynamic assembly.
修改: EFProviderWrapperToolkit\EntityConnectionWrapperUtils.cs (184 ) ParseResources
添加: if (asm.GetType().FullName != "System.Reflection.RuntimeAssembly") continue;
2.Error: 缓存的Provider 不能执行 存储过程,报 NotSupportedException("Command tree type " + commandTree.GetType() + " is not supported.")
修改: EFCachingProvider\EFCachingCommandDefinition.cs (118) GetAffectedEntitySets
添加:
DbFunctionCommandTree funcTree = commandTree as DbFunctionCommandTree;
if (funcTree != null)
{
//newsea edited!
return;
}
作者:NewSea 出处:http://newsea.cnblogs.com/
QQ,MSN:iamnewsea@hotmail.com 如无特别标记说明,均为NewSea原创,版权私有,翻载必纠。欢迎交流,转载,但要在页面明显位置给出原文连接。谢谢。 |