ModelTranslator 类

为转换器提供低级别的基类。

继承层次结构

System.Object
  Microsoft.Data.Schema.SchemaModel.Translation.ModelTranslator
    Microsoft.Data.Schema.SchemaModel.Translation.DataSchemaModelTranslator

命名空间:  Microsoft.Data.Schema.SchemaModel.Translation
程序集:  Microsoft.Data.Schema(在 Microsoft.Data.Schema.dll 中)

语法

声明
Public MustInherit Class ModelTranslator _
    Implements IExtensionInformation, IExtension
public abstract class ModelTranslator : IExtensionInformation, 
    IExtension
public ref class ModelTranslator abstract : IExtensionInformation, 
    IExtension
[<AbstractClass>]
type ModelTranslator =  
    class
        interface IExtensionInformation
        interface IExtension
    end
public abstract class ModelTranslator implements IExtensionInformation, IExtension

ModelTranslator 类型公开以下成员。

构造函数

  名称 说明
受保护的方法 ModelTranslator 使用提供的定义初始化 ModelTranslator 类的新实例。

页首

属性

  名称 说明
公共属性 CompatibilityLevel 获取此转换器的转换级别。
公共属性 DatabaseSchemaProvider 获取关联的数据库架构提供程序。
公共属性 DataLossPossible 获取一个值,该值指示转换是否会导致数据丢失。
受保护的属性 Definition 获取关联的转换器定义。
公共属性 ExtensionHandle 获取固有数据架构扩展的句柄。

页首

方法

  名称 说明
公共方法 CanTranslateTo(Type) 返回一个值,该值指示转换器能否转换为提供的类型。
公共方法 CanTranslateTo(DatabaseSchemaProvider)
公共方法 Equals 确定指定的 Object 是否等于当前的 Object。 (继承自 Object。)
受保护的方法 Finalize 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。)
公共方法静态成员 FindTranslators(DatabaseSchemaProvider, Type, IList<DataSchemaError>%)
公共方法静态成员 FindTranslators(ExtensionManager, Type, IList<DataSchemaError>%)
公共方法 GetHashCode 用作特定类型的哈希函数。 (继承自 Object。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
受保护的方法 InstantiateCopiedModel 以实例化对象形式返回源数据架构模型。
受保护的方法 InstantiateTranslatedModel 以实例化对象形式返回目标模型。
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
公共方法 SetExtensionHandle 设置此扩展对象的句柄。
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)
公共方法 Translate 使用提供的源模型将源模型架构转换为目标模型架构。

页首

备注

从此基类开始,下一个级别是一种架构的基转换器类,如 DataSchemaModelTranslator 类。

对继承者的说明

ModelTranslatorCompatibilityLevel 继承时,必须重写以下成员:

线程安全

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

请参见

参考

Microsoft.Data.Schema.SchemaModel.Translation 命名空间

DataSchemaModelTranslator