【DM版本】:8
【操作系统】:windows 10
【CPU】: intel
【问题描述】*:
错误提示:
System.Data.Entity.Core.ProviderIncompatibleException:
对类型“Dm.DmConnection”的存储区提供程序实例调用“get_ProviderFactory”方法后,返回 null。
存储区提供程序可能没有正确运行。
调用堆栈:
System.Data.Entity.Core.Common.DbProviderServices.GetProviderFactory(DbConnection connection) +122
System.Data.Entity.Utilities.DbConnectionExtensions.GetProviderInvariantName(DbConnection connection) +40
System.Data.Entity.Internal.InternalConnection.get_ProviderName() +38
System.Data.Entity.Internal.LazyInternalConnection.get_ProviderName() +21
System.Data.Entity.Internal.LazyInternalContext.get_ProviderName() +11
System.Data.Entity.Internal.DefaultModelCacheKeyFactory.Create(DbContext context) +92
System.Data.Entity.Internal.LazyInternalContext.InitializeContext() +515
System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType) +18
System.Data.Entity.Internal.Linq.InternalSet`1.Initialize() +53
System.Data.Entity.Internal.Linq.InternalSet`1.get_InternalContext() +15
System.Data.Entity.Infrastructure.DbQuery`1.System.Linq.IQueryable.get_Provider() +38
System.Linq.Queryable.Where(IQueryable`1 source, Expression`1 predicate) +85
.....
貌似驱动程序的问题,求助问题可能出在哪?
找到问题了,DmProvider.dll用的不是最新版本。用了dm7的,修改之后就好了。