ProviderIncompatibleException 类

[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 msdn.com/data/ef。]

在存储提供程序表现出的行为与实体客户端提供程序不兼容时引发的异常。

继承层次结构

System.Object
  System.Exception
    System.SystemException
      System.Data.DataException
        System.Data.Entity.Core.EntityException
          System.Data.Entity.Core.ProviderIncompatibleException

命名空间:  System.Data.Entity.Core
程序集:  EntityFramework(在 EntityFramework.dll 中)

语法

声明
<SerializableAttribute> _
Public NotInheritable Class ProviderIncompatibleException _
    Inherits EntityException
用法
Dim instance As ProviderIncompatibleException
[SerializableAttribute]
public sealed class ProviderIncompatibleException : EntityException
[SerializableAttribute]
public ref class ProviderIncompatibleException sealed : public EntityException
[<SealedAttribute>]
[<SerializableAttribute>]
type ProviderIncompatibleException =  
    class 
        inherit EntityException 
    end
public final class ProviderIncompatibleException extends EntityException

ProviderIncompatibleException 类型公开以下成员。

构造函数

  名称 描述
公共方法 ProviderIncompatibleException() 初始化 ProviderIncompatibleException 类的新实例。
公共方法 ProviderIncompatibleException(String) 使用指定的错误消息初始化 ProviderIncompatibleException 类的新实例。
公共方法 ProviderIncompatibleException(String, Exception) 使用指定的错误消息和内部异常初始化 ProviderIncompatibleException 类的新实例。

顶部

属性

  名称 描述
公共属性 Data (继承自 Exception。)
公共属性 HelpLink (继承自 Exception。)
公共属性 HResult (继承自 Exception。)
公共属性 InnerException (继承自 Exception。)
公共属性 Message (继承自 Exception。)
公共属性 Source (继承自 Exception。)
公共属性 StackTrace (继承自 Exception。)
公共属性 TargetSite (继承自 Exception。)

顶部

方法

  名称 描述
公共方法 Equals (继承自 Object。)
公共方法 GetBaseException (继承自 Exception。)
公共方法 GetHashCode (继承自 Object。)
公共方法 GetObjectData 安全关键。 (继承自 Exception。)
公共方法 GetType (继承自 Exception。)
公共方法 ToString (继承自 Exception。)

顶部

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参阅

参考

System.Data.Entity.Core 命名空间