DbXmlEnabledProviderManifest 类

定义

表示基于 XML 定义实现 DbProviderManifest 的基类。Represents a base class that implements the DbProviderManifest based on an XML definition. 您可以使用 DbXmlEnabledProviderManifest 类在运行时获取特定于提供程序的信息。You can use the DbXmlEnabledProviderManifest class to obtain provider-specific information at runtime.

public ref class DbXmlEnabledProviderManifest abstract : System::Data::Common::DbProviderManifest
public abstract class DbXmlEnabledProviderManifest : System.Data.Common.DbProviderManifest
type DbXmlEnabledProviderManifest = class
    inherit DbProviderManifest
Public MustInherit Class DbXmlEnabledProviderManifest
Inherits DbProviderManifest
继承
DbXmlEnabledProviderManifest

注解

DbXmlEnabledProviderManifest 类尤其适合与 EDM 具有对称类型映射的提供程序。The DbXmlEnabledProviderManifest class is especially appropriate for the providers whose type mapping to EDM is symmetrical. 在对称类型映射情况下,每个存储类型都映射到单个 Entity Data Model (EDM) 类型,与映射方向无关。In symmetrical type mapping scenarios, each storage type maps to a single Entity Data Model (EDM) type regardless of the mapping direction. 换句话说,从 EDM 类型到提供程序类型的映射与从提供程序类型到 EDM 类型的映射相同。In other words, the EDM-to-provider type mapping is the same as the provider-to-EDM type mapping.

在对称映射情况下,您可以从 DbXmlEnabledProviderManifest 类或 DbProviderManifest 类派生自定义提供程序类。In symmetric mapping scenarios, you can either derive your custom provider class from the DbXmlEnabledProviderManifest class or the DbProviderManifest class. 对于对称映射情况,建议您从 DbXmlEnabledProviderManifest 类派生自定义提供程序类,因为 DbXmlEnabledProviderManifest 类允许您以声明方式指定清单。We recommend that you derive your custom provider class from the DbXmlEnabledProviderManifest class for symmetric mapping scenarios because the DbXmlEnabledProviderManifest class will allow you to specify the manifests declaratively.

构造函数

DbXmlEnabledProviderManifest(XmlReader)

初始化 DbXmlEnabledProviderManifest 类的新实例。Initializes a new instance of the DbXmlEnabledProviderManifest class.

属性

NamespaceName

获取此提供程序清单支持的命名空间名称。Gets the namespace name supported by this provider manifest.

StoreTypeNameToEdmPrimitiveType

获取指定的存储类型名称的最佳映射等效 Entity Data Model (EDM) 类型。Gets the best mapped equivalent Entity Data Model (EDM) type for a specified storage type name.

StoreTypeNameToStorePrimitiveType

获取指定的存储类型名称的最佳映射等效存储基元类型。Gets the best mapped equivalent storage primitive type for a specified storage type name.

方法

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
EscapeLikeArgument(String)

提供程序编写人员应重写此方法,以返回带有已转义的通配符和转义符的参数。Provider writers should override this method to return the argument with the wildcards and the escape character escaped. 如果 SupportsEscapingLikeArgument 返回 true,则只使用此方法。This method is only used if SupportsEscapingLikeArgument returns true.

(继承自 DbProviderManifest)
GetDbInformation(String)

在派生类中重写时,此方法返回特定于提供程序的信息。When overridden in a derived class, this method returns provider-specific information.

(继承自 DbProviderManifest)
GetEdmType(TypeUsage)

在派生类中重写时,此方法将指定的存储类型以及该类型的一组 Facet 映射到 EDM 类型。When overridden in a derived class, this method maps the specified storage type and a set of facets for that type to an EDM type.

(继承自 DbProviderManifest)
GetFacetDescriptions(EdmType)

返回指定的 Entity Data Model (EDM) 类型的方面说明列表。Returns the list of facet descriptions for the specified Entity Data Model (EDM) type.

GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetInformation(String)

获取特定于提供程序的信息。Gets the provider-specific information.

(继承自 DbProviderManifest)
GetStoreFunctions()

返回提供程序支持的函数的列表。Returns the list of provider-supported functions.

GetStoreType(TypeUsage)

在派生类中重写时,此方法将指定的 EDM 类型以及该类型的一组 Facet 映射到存储类型。When overridden in a derived class, this method maps the specified EDM type and a set of facets for that type to a storage type.

(继承自 DbProviderManifest)
GetStoreTypes()

返回存储提供程序支持的基元类型的列表。Returns the list of primitive types supported by the storage provider.

GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
SupportsEscapingLikeArgument(Char)

指示提供程序是否支持在 Like 表达式中使用转义字符串作为模式。Indicates if the provider supports escaping strings to be used as patterns in a Like expression.

(继承自 DbProviderManifest)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于