Share via


ModelTranslator.Translate Method

Translates the source model schema to the target model schema by using the provided source model.

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

Syntax

'Declaration
Public Overridable Function Translate ( _
    fromModel As ModelStore, _
    doNotDisposeFromModel As Boolean _
) As ModelStore
public virtual ModelStore Translate(
    ModelStore fromModel,
    bool doNotDisposeFromModel
)
public:
virtual ModelStore^ Translate(
    ModelStore^ fromModel, 
    bool doNotDisposeFromModel
)
abstract Translate : 
        fromModel:ModelStore * 
        doNotDisposeFromModel:bool -> ModelStore 
override Translate : 
        fromModel:ModelStore * 
        doNotDisposeFromModel:bool -> ModelStore 
public function Translate(
    fromModel : ModelStore, 
    doNotDisposeFromModel : boolean
) : ModelStore

Parameters

  • doNotDisposeFromModel
    Type: System.Boolean
    false indicates the fromModel should be disposed after the translation is accomplished; true indicates it should not be disposed after the translation.

Return Value

Type: Microsoft.Data.Schema.SchemaModel.ModelStore
The translated target model.

.NET Framework Security

See Also

Reference

ModelTranslator Class

Microsoft.Data.Schema.SchemaModel.Translation Namespace

ModelStore