ModelTranslator Class

Provides a low-level base class for a translator.

Inheritance Hierarchy

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

Namespace:  Microsoft.Data.Schema.SchemaModel.Translation
Assembly:  Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)

Syntax

'Declaration
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

The ModelTranslator type exposes the following members.

Constructors

  Name Description
Protected method ModelTranslator Initializes a new instance of the ModelTranslator class by using the provided definition.

Top

Properties

  Name Description
Public property CompatibilityLevel Gets the level of translation for this translator.
Public property DatabaseSchemaProvider Gets the associated database schema provider.
Public property DataLossPossible Gets a value that indicates whether the translation may cause data loss.
Protected property Definition Gets the associated translator definition.
Public property ExtensionHandle Gets the handle for the inherent data schema extension.

Top

Methods

  Name Description
Public method CanTranslateTo(Type) Returns a value that indicates whether the translator can translate to the provided type.
Public method CanTranslateTo(DatabaseSchemaProvider)
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodStatic member FindTranslators(DatabaseSchemaProvider, Type, IList<DataSchemaError>%)
Public methodStatic member FindTranslators(ExtensionManager, Type, IList<DataSchemaError>%)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method InstantiateCopiedModel Returns the source data schema model as an instantiated object.
Protected method InstantiateTranslatedModel Returns the target model as an instantiated object.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method SetExtensionHandle Sets the handle for this extension object.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method Translate Translates the source model schema to the target model schema by using the provided source model.

Top

Remarks

At the next level from this base is a base translator class for a kind of schema, such as the DataSchemaModelTranslator class.

Notes to Inheritors

When you inherit from ModelTranslatorCompatibilityLevel, you must override the following members:

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Data.Schema.SchemaModel.Translation Namespace

DataSchemaModelTranslator