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
- fromModel
Type: Microsoft.Data.Schema.SchemaModel.ModelStore
A ModelStore object that represents the source model.
- 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.