C# Class Company.OrmLanguage.OrmLanguageSerializationBehaviorSerializationMessages

Utility class to provide serialization messages
Afficher le fichier Open project: thabart/SimpleOrm

Private Properties

Свойство Type Description
CannotMonikerizeElement void
ExpectingFullFormRelationship void
ExpectingShortFormRelationship void
IgnoredPropertyValue void
InvalidPropertyValue void

Méthodes publiques

Méthode Description
AmbiguousMoniker ( global::Microsoft.VisualStudio.Modeling serializationContext, string moniker, global::Microsoft.VisualStudio.Modeling element1, global::Microsoft.VisualStudio.Modeling element2 ) : void

Add an error for ambiguous moniker.

AmbiguousSchema ( global::Microsoft.VisualStudio.Modeling serializationContext, global reader, string targetNamespace, string schemaPath ) : void

Add a warning for ambiguous schemas.

DanglingRelationship ( global::Microsoft.VisualStudio.Modeling serializationContext, global reader, string relationshipType ) : void

Add an error for dangling relationship instance.

MissingId ( global::Microsoft.VisualStudio.Modeling serializationContext, global reader, global newId ) : void

Add a warning for missing "Id" property.

MissingMoniker ( global::Microsoft.VisualStudio.Modeling serializationContext, global reader, string monikerAttributeName ) : void

Add an error for missing moniker.

MonikerResolvedToDuplicateLink ( global::Microsoft.VisualStudio.Modeling serializationResult, global::Microsoft.VisualStudio.Modeling moniker ) : void

Add an warning for moniker resolved to duplicate link. The moniker will be ignored.

NoSchema ( global::Microsoft.VisualStudio.Modeling serializationContext, global reader, string targetNamespace ) : void

Add a warning for no schema found for the given target namespace, schema validation will be skipped in this case.

SchemaValidationError ( global::Microsoft.VisualStudio.Modeling serializationContext, global reader, string message ) : void

Add a warning for schema validation error.

UnexpectedXmlElement ( global::Microsoft.VisualStudio.Modeling serializationContext, global reader ) : void

Add an warning for unexpected XML element.

UnresolvedMoniker ( global::Microsoft.VisualStudio.Modeling serializationResult, global::Microsoft.VisualStudio.Modeling moniker ) : void

Add an error for unresolved moniker.

VersionMismatch ( global::Microsoft.VisualStudio.Modeling serializationContext, global reader, global expectedVersion, global actualVersion ) : void

Add an error for Version mismatch.

Private Methods

Méthode Description
CannotMonikerizeElement ( global::Microsoft.VisualStudio.Modeling serializationContext, string domainClassName ) : void
ExpectingFullFormRelationship ( global::Microsoft.VisualStudio.Modeling serializationContext, global reader, global relationshipType ) : void
ExpectingShortFormRelationship ( global::Microsoft.VisualStudio.Modeling serializationContext, global reader, global relationshipType ) : void
IgnoredPropertyValue ( global::Microsoft.VisualStudio.Modeling serializationContext, global reader, string propertyName, global propertyType, string value ) : void
InvalidPropertyValue ( global::Microsoft.VisualStudio.Modeling serializationContext, global reader, string propertyName, global propertyType, string value ) : void

Method Details

AmbiguousMoniker() public static méthode

Add an error for ambiguous moniker.
public static AmbiguousMoniker ( global::Microsoft.VisualStudio.Modeling serializationContext, string moniker, global::Microsoft.VisualStudio.Modeling element1, global::Microsoft.VisualStudio.Modeling element2 ) : void
serializationContext global::Microsoft.VisualStudio.Modeling SerializationContext to add the error message to.
moniker string The ambiguous moniker string.
element1 global::Microsoft.VisualStudio.Modeling The first element using the given moniker.
element2 global::Microsoft.VisualStudio.Modeling The second element using the given moniker.
Résultat void

AmbiguousSchema() public static méthode

Add a warning for ambiguous schemas.
public static AmbiguousSchema ( global::Microsoft.VisualStudio.Modeling serializationContext, global reader, string targetNamespace, string schemaPath ) : void
serializationContext global::Microsoft.VisualStudio.Modeling SerializationContext to add the warning message to.
reader global The reader pointing to where the message is raised.
targetNamespace string Target namespace to be resolved.
schemaPath string The schema that is used to resolve the definition of the target namespace.
Résultat void

DanglingRelationship() public static méthode

Add an error for dangling relationship instance.
public static DanglingRelationship ( global::Microsoft.VisualStudio.Modeling serializationContext, global reader, string relationshipType ) : void
serializationContext global::Microsoft.VisualStudio.Modeling SerializationContext to add the error message to.
reader global The reader pointing to where the message is raised.
relationshipType string Type name of the relationship.
Résultat void

MissingId() public static méthode

Add a warning for missing "Id" property.
public static MissingId ( global::Microsoft.VisualStudio.Modeling serializationContext, global reader, global newId ) : void
serializationContext global::Microsoft.VisualStudio.Modeling SerializationContext to add the warning message to.
reader global The reader pointing to where the message is raised.
newId global Auto-generated new Id.
Résultat void

MissingMoniker() public static méthode

Add an error for missing moniker.
public static MissingMoniker ( global::Microsoft.VisualStudio.Modeling serializationContext, global reader, string monikerAttributeName ) : void
serializationContext global::Microsoft.VisualStudio.Modeling SerializationContext to add the error message to.
reader global The reader pointing to where the message is raised.
monikerAttributeName string Name of the attribute that should hold the moniker.
Résultat void

MonikerResolvedToDuplicateLink() public static méthode

Add an warning for moniker resolved to duplicate link. The moniker will be ignored.
public static MonikerResolvedToDuplicateLink ( global::Microsoft.VisualStudio.Modeling serializationResult, global::Microsoft.VisualStudio.Modeling moniker ) : void
serializationResult global::Microsoft.VisualStudio.Modeling SerializationResult to add the error message to.
moniker global::Microsoft.VisualStudio.Modeling Offending moniker.
Résultat void

NoSchema() public static méthode

Add a warning for no schema found for the given target namespace, schema validation will be skipped in this case.
public static NoSchema ( global::Microsoft.VisualStudio.Modeling serializationContext, global reader, string targetNamespace ) : void
serializationContext global::Microsoft.VisualStudio.Modeling SerializationContext to add the warning message to.
reader global The reader pointing to where the message is raised.
targetNamespace string Target namespace that cannot be resolved.
Résultat void

SchemaValidationError() public static méthode

Add a warning for schema validation error.
public static SchemaValidationError ( global::Microsoft.VisualStudio.Modeling serializationContext, global reader, string message ) : void
serializationContext global::Microsoft.VisualStudio.Modeling SerializationContext to add the warning message to.
reader global The reader pointing to where the message is raised.
message string Validation message reported from schema validation.
Résultat void

UnexpectedXmlElement() public static méthode

Add an warning for unexpected XML element.
public static UnexpectedXmlElement ( global::Microsoft.VisualStudio.Modeling serializationContext, global reader ) : void
serializationContext global::Microsoft.VisualStudio.Modeling SerializationContext to add the warning message to.
reader global The reader pointing to where the message is raised.
Résultat void

UnresolvedMoniker() public static méthode

Add an error for unresolved moniker.
public static UnresolvedMoniker ( global::Microsoft.VisualStudio.Modeling serializationResult, global::Microsoft.VisualStudio.Modeling moniker ) : void
serializationResult global::Microsoft.VisualStudio.Modeling SerializationResult to add the error message to.
moniker global::Microsoft.VisualStudio.Modeling Unresolved moniker.
Résultat void

VersionMismatch() public static méthode

Add an error for Version mismatch.
public static VersionMismatch ( global::Microsoft.VisualStudio.Modeling serializationContext, global reader, global expectedVersion, global actualVersion ) : void
serializationContext global::Microsoft.VisualStudio.Modeling SerializationContext to add the error message to.
reader global The reader pointing to where the message is raised.
expectedVersion global The version that's expected.
actualVersion global Actual version from the file.
Résultat void