• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
tonycol
博客园    首页    新随笔    联系   管理     

EntityFramework组件错误

184行前添加: if (asm.GetType().FullName != "System.Reflection.RuntimeAssembly") continue;忽略错误

缓存的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;

            }

download EF:

http://code.msdn.microsoft.com/EFProviderWrappers/Release/ProjectReleases.aspx?ReleaseId=4747

posted @ 2010-10-31 00:11  tonycol  阅读(167)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3