메소드 | 설명 | |
---|---|---|
GetSerializedModelString ( global modelRoot, global encoding ) : string |
Return the model in XML format
|
|
LoadModel ( global::Microsoft.VisualStudio.Modeling serializationResult, global::Microsoft.VisualStudio.Modeling store, string fileName, global::Microsoft.VisualStudio.Modeling schemaResolver, global::Microsoft.VisualStudio.Modeling.Validation validationController, global::Microsoft.VisualStudio.Modeling serializerLocator ) : |
Loads a SampleOrmModel instance into the default partition of the given store.
|
|
LoadModel ( global::Microsoft.VisualStudio.Modeling store, string fileName, global::Microsoft.VisualStudio.Modeling schemaResolver, global::Microsoft.VisualStudio.Modeling.Validation validationController, global::Microsoft.VisualStudio.Modeling serializerLocator ) : |
Loads a SampleOrmModel instance into the default partition of the given store, and ignore serialization result.
|
|
LoadModelAndDiagram ( global::Microsoft.VisualStudio.Modeling serializationResult, global::Microsoft.VisualStudio.Modeling store, string modelFileName, string diagramFileName, global::Microsoft.VisualStudio.Modeling schemaResolver, global::Microsoft.VisualStudio.Modeling.Validation validationController, global::Microsoft.VisualStudio.Modeling serializerLocator ) : |
Loads a SampleOrmModel instance and its associated diagram file into the default partition of the given store.
|
|
LoadModelAndDiagram ( global::Microsoft.VisualStudio.Modeling store, string modelFileName, string diagramFileName, global::Microsoft.VisualStudio.Modeling schemaResolver, global::Microsoft.VisualStudio.Modeling.Validation validationController, global::Microsoft.VisualStudio.Modeling serializerLocator ) : |
Loads a SampleOrmModel instance and its associated diagram file into the default partition of the given store, and ignore serialization result.
|
|
SaveDiagram ( global::Microsoft.VisualStudio.Modeling serializationResult, |
Saves the given diagram to the given file, with default encoding (UTF-8), and optional properties with default value will not be written out.
|
|
SaveDiagram ( global::Microsoft.VisualStudio.Modeling serializationResult, |
Saves the given diagram to the given file, with default encoding (UTF-8).
|
|
SaveModel ( global::Microsoft.VisualStudio.Modeling serializationResult, |
Saves the given model root to the given file, with default encoding (UTF-8), and optional properties with default value will not be written out.
|
|
SaveModel ( global::Microsoft.VisualStudio.Modeling serializationResult, |
Saves the given model to the given file, with default encoding (UTF-8).
|
|
SaveModelAndDiagram ( global::Microsoft.VisualStudio.Modeling serializationResult, |
Saves the given diagram to the given file, with default encoding (UTF-8), and optional properties with default value will not be written out.
|
|
SaveModelAndDiagram ( global::Microsoft.VisualStudio.Modeling serializationResult, |
Saves the given diagram to the given file, with default encoding (UTF-8).
|
|
WriteRootElement ( global::Microsoft.VisualStudio.Modeling serializationContext, global::Microsoft.VisualStudio.Modeling rootElement, global writer ) : void |
Write an element as the root of XML.
|
메소드 | 설명 | |
---|---|---|
CheckVersion ( global::Microsoft.VisualStudio.Modeling serializationContext, global reader ) : void |
Checks the version of the file being read.
|
|
CreateModelHelper ( global::Microsoft.VisualStudio.Modeling modelPartition ) : |
Helper method to create and initialize a new SampleOrmModel.
|
|
GetDirectory ( global::Microsoft.VisualStudio.Modeling store ) : DslModeling::DomainXmlSerializerDirectory |
Return the directory of serializers to use
|
|
GetMonikerResolvers ( global::Microsoft.VisualStudio.Modeling store ) : DslModeling::IMonikerResolver>.global::System.Collections.Generic.IDictionary |
This method returns the moniker resolvers for each of the domain models in the store
|
|
InitializeSerialization ( global::Microsoft.VisualStudio.Modeling store ) : void |
Ensure that moniker resolvers and domain element serializers are installed properly on the given store, so that deserialization can be carried out correctly.
|
|
InitializeSerializationContext ( global::Microsoft.VisualStudio.Modeling partition, global::Microsoft.VisualStudio.Modeling serializationContext, bool isLoading ) : void | ||
OrmLanguageSerializationHelperBase ( ) : System.Linq |
Constructor
|
|
ReadExtensions ( global::Microsoft.VisualStudio.Modeling serializationContext, global::Microsoft.VisualStudio.Modeling element, global reader ) : void |
Read any extension data written inside this XML element The method reads any extension element data, regardless of whether it relates the current element or not. There may be no additional data for the specified element. |
|
ReadRootElement ( global::Microsoft.VisualStudio.Modeling serializationContext, global::Microsoft.VisualStudio.Modeling rootElement, global reader, global::Microsoft.VisualStudio.Modeling schemaResolver ) : void |
Read an element from the root of XML.
|
|
ResolveSchema ( string targetNamespace, global schemaSet, global::Microsoft.VisualStudio.Modeling schemaResolver, global reader, global::Microsoft.VisualStudio.Modeling serializationContext ) : bool |
Attempts to resolve the supplied schema namespace If the schema can be resolved it is added to the supplied schema set. Otherwise, a warning will be written to serializationContext. |
|
TryCreateValidatingReader ( global::Microsoft.VisualStudio.Modeling schemaResolver, global reader, global::Microsoft.VisualStudio.Modeling serializationContext ) : global::System.Xml.XmlReader |
Attempts to return a validating XML reader
|
|
TryGetEncoding ( global reader, global &encoding ) : bool |
Attempts to return the encoding used by the reader. The reader will be positioned at the start of the document when calling this method. |
|
WriteExtensions ( global::Microsoft.VisualStudio.Modeling serializationContext, global::Microsoft.VisualStudio.Modeling element, global writer ) : void |
Write extension element data inside the current XML element The default implemenation is to write out all non-embedded extension elements, regardless of whether they relate to the current element or not. The additional data should be written as a series of one or more XML elements. |
메소드 | 설명 | |
---|---|---|
CheckForOrphanedShapes ( global::Microsoft.VisualStudio.Modeling.Diagrams diagram, global::Microsoft.VisualStudio.Modeling serializationResult ) : void | ||
CreateDiagramHelper ( global::Microsoft.VisualStudio.Modeling diagramPartition, global::Microsoft.VisualStudio.Modeling modelRoot ) : |
||
CreateXmlReaderSettings ( global::Microsoft.VisualStudio.Modeling serializationContext, bool isDiagram ) : global::System.Xml.XmlReaderSettings |
Creates and returns the settings used when reading a file.
|
|
CreateXmlWriterSettings ( global::Microsoft.VisualStudio.Modeling serializationContext, bool isDiagram, global encoding ) : global::System.Xml.XmlWriterSettings |
Creates and returns the settings used when writing a file.
|
|
InternalSaveDiagram ( global::Microsoft.VisualStudio.Modeling serializationResult, |
||
InternalSaveModel ( global::Microsoft.VisualStudio.Modeling serializationResult, |
||
LoadModelAndDiagram ( global::Microsoft.VisualStudio.Modeling serializationResult, global::Microsoft.VisualStudio.Modeling modelPartition, string modelFileName, global::Microsoft.VisualStudio.Modeling diagramPartition, string diagramFileName, global::Microsoft.VisualStudio.Modeling schemaResolver, global::Microsoft.VisualStudio.Modeling.Validation validationController, global::Microsoft.VisualStudio.Modeling serializerLocator ) : |
||
ReadAttribute ( global::Microsoft.VisualStudio.Modeling serializationContext, global::Microsoft.VisualStudio.Modeling element, global reader, string attributeName ) : string |
Reads and returns the value of an attribute. This is an extension point to allow customisation e.g. to decode the data being written to the file. |
|
ReadElementContentAsString ( global::Microsoft.VisualStudio.Modeling serializationContext, global::Microsoft.VisualStudio.Modeling element, global reader ) : string |
Reads and returns the value of an element. This is an extension point to allow customisation e.g. to decode the data being written to the file. |
|
SaveDiagram ( global::Microsoft.VisualStudio.Modeling serializationResult, |
||
SaveModel ( global::Microsoft.VisualStudio.Modeling serializationResult, |
||
SaveModelAndDiagram ( global::Microsoft.VisualStudio.Modeling serializationResult, |
||
WriteAttributeString ( global::Microsoft.VisualStudio.Modeling serializationContext, global::Microsoft.VisualStudio.Modeling element, global writer, string attributeName, string attributeValue ) : void |
Writes the specified attribute to the file. This is an extension point to allow customisation e.g. to encode the data being written to the file. |
|
WriteElementString ( global::Microsoft.VisualStudio.Modeling serializationContext, global::Microsoft.VisualStudio.Modeling element, global writer, string elementName, string elementValue ) : void |
Writes the specified element to the file. This is an extension point to allow customisation e.g. to encode the data being written to the file. |
protected CheckVersion ( global::Microsoft.VisualStudio.Modeling serializationContext, global reader ) : void | ||
serializationContext | global::Microsoft.VisualStudio.Modeling | Serialization context. |
reader | global | Reader for the file being read. The reader is positioned at the open tag of the root element being read. |
리턴 | void |
protected CreateModelHelper ( global::Microsoft.VisualStudio.Modeling modelPartition ) : |
||
modelPartition | global::Microsoft.VisualStudio.Modeling | |
리턴 |
protected GetDirectory ( global::Microsoft.VisualStudio.Modeling store ) : DslModeling::DomainXmlSerializerDirectory | ||
store | global::Microsoft.VisualStudio.Modeling | |
리턴 | DslModeling::DomainXmlSerializerDirectory |
protected GetMonikerResolvers ( global::Microsoft.VisualStudio.Modeling store ) : DslModeling::IMonikerResolver>.global::System.Collections.Generic.IDictionary |
||
store | global::Microsoft.VisualStudio.Modeling | Store on which the moniker resolvers are set up. |
리턴 | DslModeling::IMonikerResolver>.global::System.Collections.Generic.IDictionary |
public GetSerializedModelString ( global modelRoot, global encoding ) : string | ||
modelRoot | global | Root instance to be saved. |
encoding | global | Encoding to use when saving the root instance. |
리턴 | string |
protected InitializeSerialization ( global::Microsoft.VisualStudio.Modeling store ) : void | ||
store | global::Microsoft.VisualStudio.Modeling | Store on which moniker resolvers will be set up. |
리턴 | void |
protected InitializeSerializationContext ( global::Microsoft.VisualStudio.Modeling partition, global::Microsoft.VisualStudio.Modeling serializationContext, bool isLoading ) : void | ||
partition | global::Microsoft.VisualStudio.Modeling | The partition being serialized. |
serializationContext | global::Microsoft.VisualStudio.Modeling | The current serialization context instance. |
isLoading | bool | Flag to indicate whether the file is being loaded or saved. |
리턴 | void |
public LoadModel ( global::Microsoft.VisualStudio.Modeling serializationResult, global::Microsoft.VisualStudio.Modeling store, string fileName, global::Microsoft.VisualStudio.Modeling schemaResolver, global::Microsoft.VisualStudio.Modeling.Validation validationController, global::Microsoft.VisualStudio.Modeling serializerLocator ) : |
||
serializationResult | global::Microsoft.VisualStudio.Modeling | Stores serialization result from the load operation. |
store | global::Microsoft.VisualStudio.Modeling | The new SampleOrmModel instance will be created into the default partition of this store. |
fileName | string | Name of the file from which the SampleOrmModel instance will be deserialized. |
schemaResolver | global::Microsoft.VisualStudio.Modeling | /// An ISchemaResolver that allows the serializer to do schema validation on the root element (and everything inside it). /// If null is passed, schema validation will not be performed. /// |
validationController | global::Microsoft.VisualStudio.Modeling.Validation | /// A ValidationController that will be used to do load-time validation (validations with validation category "Load"). If null /// is passed, load-time validation will not be performed. /// |
serializerLocator | global::Microsoft.VisualStudio.Modeling | /// An ISerializerLocator that will be used to locate any additional domain model types required to load the model. Can be null. /// |
리턴 |
public LoadModel ( global::Microsoft.VisualStudio.Modeling store, string fileName, global::Microsoft.VisualStudio.Modeling schemaResolver, global::Microsoft.VisualStudio.Modeling.Validation validationController, global::Microsoft.VisualStudio.Modeling serializerLocator ) : |
||
store | global::Microsoft.VisualStudio.Modeling | The new SampleOrmModel instance will be created into the default partition of this store. |
fileName | string | Name of the file from which the SampleOrmModel instance will be deserialized. |
schemaResolver | global::Microsoft.VisualStudio.Modeling | /// An ISchemaResolver that allows the serializer to do schema validation on the root element (and everything inside it). /// If null is passed, schema validation will not be performed. /// |
validationController | global::Microsoft.VisualStudio.Modeling.Validation | /// A ValidationController that will be used to do load-time validation (validations with validation category "Load"). If null /// is passed, load-time validation will not be performed. /// |
serializerLocator | global::Microsoft.VisualStudio.Modeling | /// An ISerializerLocator that will be used to locate any additional domain model types required to load the model. Can be null. /// |
리턴 |
public LoadModelAndDiagram ( global::Microsoft.VisualStudio.Modeling serializationResult, global::Microsoft.VisualStudio.Modeling store, string modelFileName, string diagramFileName, global::Microsoft.VisualStudio.Modeling schemaResolver, global::Microsoft.VisualStudio.Modeling.Validation validationController, global::Microsoft.VisualStudio.Modeling serializerLocator ) : |
||
serializationResult | global::Microsoft.VisualStudio.Modeling | Stores serialization result from the load operation. |
store | global::Microsoft.VisualStudio.Modeling | The new SampleOrmModel instance will be created into the default partition of this store. |
modelFileName | string | Name of the file from which the SampleOrmModel instance will be deserialized. |
diagramFileName | string | Name of the file from which the OrmLanguageDiagram instance will be deserialized. |
schemaResolver | global::Microsoft.VisualStudio.Modeling | /// An ISchemaResolver that allows the serializer to do schema validation on the root element (and everything inside it). /// If null is passed, schema validation will not be performed. /// |
validationController | global::Microsoft.VisualStudio.Modeling.Validation | /// A ValidationController that will be used to do load-time validation (validations with validation category "Load"). If null /// is passed, load-time validation will not be performed. /// |
serializerLocator | global::Microsoft.VisualStudio.Modeling | /// An ISerializerLocator that will be used to locate any additional domain model types required to load the model. Can be null. /// |
리턴 |
public LoadModelAndDiagram ( global::Microsoft.VisualStudio.Modeling store, string modelFileName, string diagramFileName, global::Microsoft.VisualStudio.Modeling schemaResolver, global::Microsoft.VisualStudio.Modeling.Validation validationController, global::Microsoft.VisualStudio.Modeling serializerLocator ) : |
||
store | global::Microsoft.VisualStudio.Modeling | The new SampleOrmModel instance will be created into the default partition of this store. |
modelFileName | string | Name of the file from which the SampleOrmModel instance will be deserialized. |
diagramFileName | string | Name of the file from which the OrmLanguageDiagram instance will be deserialized. |
schemaResolver | global::Microsoft.VisualStudio.Modeling | /// An ISchemaResolver that allows the serializer to do schema validation on the root element (and everything inside it). /// If null is passed, schema validation will not be performed. /// |
validationController | global::Microsoft.VisualStudio.Modeling.Validation | /// A ValidationController that will be used to do load-time validation (validations with validation category "Load"). If null /// is passed, load-time validation will not be performed. /// |
serializerLocator | global::Microsoft.VisualStudio.Modeling | /// An ISerializerLocator that will be used to locate any additional domain model types required to load the model. Can be null. /// |
리턴 |
protected OrmLanguageSerializationHelperBase ( ) : System.Linq | ||
리턴 | System.Linq |
protected ReadExtensions ( global::Microsoft.VisualStudio.Modeling serializationContext, global::Microsoft.VisualStudio.Modeling element, global reader ) : void | ||
serializationContext | global::Microsoft.VisualStudio.Modeling | The current serialization context instance. |
element | global::Microsoft.VisualStudio.Modeling | In-memory ModelElement instance that is currently being read. |
reader | global | Reader for the file being read. The reader is positioned after the attributes of the specified element. |
리턴 | void |
protected ReadRootElement ( global::Microsoft.VisualStudio.Modeling serializationContext, global::Microsoft.VisualStudio.Modeling rootElement, global reader, global::Microsoft.VisualStudio.Modeling schemaResolver ) : void | ||
serializationContext | global::Microsoft.VisualStudio.Modeling | Serialization context. |
rootElement | global::Microsoft.VisualStudio.Modeling | In-memory element instance that will get the deserialized data. |
reader | global | XmlReader to read serialized data from. |
schemaResolver | global::Microsoft.VisualStudio.Modeling | An ISchemaResolver that allows the serializer to do schema validation on the root element (and everything inside it). |
리턴 | void |
protected static ResolveSchema ( string targetNamespace, global schemaSet, global::Microsoft.VisualStudio.Modeling schemaResolver, global reader, global::Microsoft.VisualStudio.Modeling serializationContext ) : bool | ||
targetNamespace | string | |
schemaSet | global | |
schemaResolver | global::Microsoft.VisualStudio.Modeling | |
reader | global | |
serializationContext | global::Microsoft.VisualStudio.Modeling | |
리턴 | bool |
public SaveDiagram ( global::Microsoft.VisualStudio.Modeling serializationResult, |
||
serializationResult | global::Microsoft.VisualStudio.Modeling | Stores serialization result from the save operation. |
diagram | OrmLanguageDiagram to be saved. | |
diagramFileName | string | Name of the file in which the diagram will be saved. |
리턴 | void |
public SaveDiagram ( global::Microsoft.VisualStudio.Modeling serializationResult, |
||
serializationResult | global::Microsoft.VisualStudio.Modeling | Stores serialization result from the save operation. |
diagram | OrmLanguageDiagram to be saved. | |
diagramFileName | string | Name of the file in which the diagram will be saved. |
writeOptionalPropertiesWithDefaultValue | bool | Whether optional properties with default value will be saved. |
리턴 | void |
public SaveModel ( global::Microsoft.VisualStudio.Modeling serializationResult, |
||
serializationResult | global::Microsoft.VisualStudio.Modeling | Stores serialization result from the save operation. |
modelRoot | SampleOrmModel instance to be saved. | |
fileName | string | Name of the file in which the SampleOrmModel instance will be saved. |
리턴 | void |
public SaveModel ( global::Microsoft.VisualStudio.Modeling serializationResult, |
||
serializationResult | global::Microsoft.VisualStudio.Modeling | Stores serialization result from the save operation. |
modelRoot | SampleOrmModel instance to be saved. | |
fileName | string | Name of the file in which the SampleOrmModel instance will be saved. |
writeOptionalPropertiesWithDefaultValue | bool | Whether optional properties with default value will be saved. |
리턴 | void |
public SaveModelAndDiagram ( global::Microsoft.VisualStudio.Modeling serializationResult, |
||
serializationResult | global::Microsoft.VisualStudio.Modeling | Stores serialization result from the save operation. |
modelRoot | SampleOrmModel instance to be saved. | |
modelFileName | string | Name of the file in which the CanonicalSampleRoot instance will be saved. |
diagram | OrmLanguageDiagram to be saved. | |
diagramFileName | string | Name of the file in which the diagram will be saved. |
리턴 | void |
public SaveModelAndDiagram ( global::Microsoft.VisualStudio.Modeling serializationResult, |
||
serializationResult | global::Microsoft.VisualStudio.Modeling | Stores serialization result from the save operation. |
modelRoot | SampleOrmModel instance to be saved. | |
modelFileName | string | Name of the file in which the CanonicalSampleRoot instance will be saved. |
diagram | OrmLanguageDiagram to be saved. | |
diagramFileName | string | Name of the file in which the diagram will be saved. |
writeOptionalPropertiesWithDefaultValue | bool | Whether optional properties with default value will be saved. |
리턴 | void |
protected TryCreateValidatingReader ( global::Microsoft.VisualStudio.Modeling schemaResolver, global reader, global::Microsoft.VisualStudio.Modeling serializationContext ) : global::System.Xml.XmlReader | ||
schemaResolver | global::Microsoft.VisualStudio.Modeling | |
reader | global | |
serializationContext | global::Microsoft.VisualStudio.Modeling | |
리턴 | global::System.Xml.XmlReader |
protected TryGetEncoding ( global reader, global &encoding ) : bool | ||
reader | global | |
encoding | global | |
리턴 | bool |
protected WriteExtensions ( global::Microsoft.VisualStudio.Modeling serializationContext, global::Microsoft.VisualStudio.Modeling element, global writer ) : void | ||
serializationContext | global::Microsoft.VisualStudio.Modeling | The current serialization context instance. |
element | global::Microsoft.VisualStudio.Modeling | The element whose attributes have just been written. |
writer | global | XmlWriter to write serialized data to. |
리턴 | void |
public WriteRootElement ( global::Microsoft.VisualStudio.Modeling serializationContext, global::Microsoft.VisualStudio.Modeling rootElement, global writer ) : void | ||
serializationContext | global::Microsoft.VisualStudio.Modeling | Serialization context. |
rootElement | global::Microsoft.VisualStudio.Modeling | Root element instance that will be serialized. |
writer | global | XmlWriter to write serialized data to. |
리턴 | void |