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 | |
---|---|---|
ModelTranslator | Initializes a new instance of the ModelTranslator class by using the provided definition. |
Top
Properties
Name | Description | |
---|---|---|
CompatibilityLevel | Gets the level of translation for this translator. | |
DatabaseSchemaProvider | Gets the associated database schema provider. | |
DataLossPossible | Gets a value that indicates whether the translation may cause data loss. | |
Definition | Gets the associated translator definition. | |
ExtensionHandle | Gets the handle for the inherent data schema extension. |
Top
Methods
Name | Description | |
---|---|---|
CanTranslateTo(Type) | Returns a value that indicates whether the translator can translate to the provided type. | |
CanTranslateTo(DatabaseSchemaProvider) | ||
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
FindTranslators(DatabaseSchemaProvider, Type, IList<DataSchemaError>%) | ||
FindTranslators(ExtensionManager, Type, IList<DataSchemaError>%) | ||
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
InstantiateCopiedModel | Returns the source data schema model as an instantiated object. | |
InstantiateTranslatedModel | Returns the target model as an instantiated object. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
SetExtensionHandle | Sets the handle for this extension object. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
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.