C# Class Company.OrmLanguage.OrmLanguageDomainModelSerializerBase

Base class that implements IDomainModelSerializer
Inheritance: DslModeling::IDomainModelSerializer
Show file Open project: thabart/SimpleOrm

Public Methods

Method Description
CalculateDiagramFileName ( string modelFileName ) : string

Calculates and returns the name of the diagram file for the specified model file

There is no guarantee that either the model file or the calculated diagram file exist.

LoadModel ( global::Microsoft.VisualStudio.Modeling serializationResult, global::Microsoft.VisualStudio.Modeling partition, string fileName, global::Microsoft.VisualStudio.Modeling serializerLocator ) : DslModeling::ModelElement

Loads a SampleOrmModel instance and its associated diagram file.

LoadModelAndDiagram ( global::Microsoft.VisualStudio.Modeling serializationResult, global::Microsoft.VisualStudio.Modeling modelPartition, string modelFileName, global::Microsoft.VisualStudio.Modeling diagramPartition, string diagramFileName, global::Microsoft.VisualStudio.Modeling serializerLocator ) : DslModeling::ModelElement

Loads a SampleOrmModel instance and its associated diagram file.

SaveModel ( global::Microsoft.VisualStudio.Modeling serializationResult, global::Microsoft.VisualStudio.Modeling modelRoot, string fileName, System encoding ) : void

Saves the given model root to the given file, with specified encoding.

SaveModelAndDiagram ( global::Microsoft.VisualStudio.Modeling serializationResult, global::Microsoft.VisualStudio.Modeling modelRoot, string modelFileName, global::Microsoft.VisualStudio.Modeling diagram, string diagramFileName, System encoding ) : void

Saves the given SampleOrmModel and OrmLanguageDiagram to the given files, with specified encoding.

Method Details

CalculateDiagramFileName() public method

Calculates and returns the name of the diagram file for the specified model file
There is no guarantee that either the model file or the calculated diagram file exist.
public CalculateDiagramFileName ( string modelFileName ) : string
modelFileName string The relevant model file name
return string

LoadModel() public method

Loads a SampleOrmModel instance and its associated diagram file.
public LoadModel ( global::Microsoft.VisualStudio.Modeling serializationResult, global::Microsoft.VisualStudio.Modeling partition, string fileName, global::Microsoft.VisualStudio.Modeling serializerLocator ) : DslModeling::ModelElement
serializationResult global::Microsoft.VisualStudio.Modeling Stores serialization result from the load operation.
partition global::Microsoft.VisualStudio.Modeling Partition in which the new SampleOrmModel instance will be created.
fileName string Name of the file from which the SampleOrmModel instance will be deserialized.
serializerLocator global::Microsoft.VisualStudio.Modeling Used to locate any additional domain model types required to load the model. Can be null.
return DslModeling::ModelElement

LoadModelAndDiagram() public method

Loads a SampleOrmModel instance and its associated diagram file.
public LoadModelAndDiagram ( global::Microsoft.VisualStudio.Modeling serializationResult, global::Microsoft.VisualStudio.Modeling modelPartition, string modelFileName, global::Microsoft.VisualStudio.Modeling diagramPartition, string diagramFileName, global::Microsoft.VisualStudio.Modeling serializerLocator ) : DslModeling::ModelElement
serializationResult global::Microsoft.VisualStudio.Modeling Stores serialization result from the load operation.
modelPartition global::Microsoft.VisualStudio.Modeling Partition in which the new SampleOrmModel instance will be created.
modelFileName string Name of the file from which the SampleOrmModel instance will be deserialized.
diagramPartition global::Microsoft.VisualStudio.Modeling Partition in which the new OrmLanguageDiagram instance will be created.
diagramFileName string Name of the file from which the OrmLanguageDiagram instance will be deserialized.
serializerLocator global::Microsoft.VisualStudio.Modeling Used to locate any additional domain model types required to load the model. Can be null.
return DslModeling::ModelElement

SaveModel() public method

Saves the given model root to the given file, with specified encoding.
public SaveModel ( global::Microsoft.VisualStudio.Modeling serializationResult, global::Microsoft.VisualStudio.Modeling modelRoot, string fileName, System encoding ) : void
serializationResult global::Microsoft.VisualStudio.Modeling Stores serialization result from the save operation.
modelRoot global::Microsoft.VisualStudio.Modeling SampleOrmModel instance to be saved.
fileName string Name of the file in which the SampleOrmModel instance will be saved.
encoding System Encoding to use when saving the SampleOrmModel instance.
return void

SaveModelAndDiagram() public method

Saves the given SampleOrmModel and OrmLanguageDiagram to the given files, with specified encoding.
public SaveModelAndDiagram ( global::Microsoft.VisualStudio.Modeling serializationResult, global::Microsoft.VisualStudio.Modeling modelRoot, string modelFileName, global::Microsoft.VisualStudio.Modeling diagram, string diagramFileName, System encoding ) : void
serializationResult global::Microsoft.VisualStudio.Modeling Stores serialization result from the save operation.
modelRoot global::Microsoft.VisualStudio.Modeling SampleOrmModel instance to be saved.
modelFileName string Name of the file in which the CanonicalSampleRoot instance will be saved.
diagram global::Microsoft.VisualStudio.Modeling OrmLanguageDiagram to be saved.
diagramFileName string Name of the file in which the diagram will be saved.
encoding System Encoding to use when saving the diagram.
return void