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;
            }

posted @ 2010-03-09 14:00  NewSea  阅读(1211)  评论(1编辑  收藏  举报