internal void HandleStoreGeneratedPatternAttribute(XmlReader reader) { var value = reader.Value; StoreGeneratedPattern storeGeneratedPattern; if (value == XmlConstants.None) { storeGeneratedPattern = StoreGeneratedPattern.None; } else if (value == XmlConstants.Identity) { storeGeneratedPattern = StoreGeneratedPattern.Identity; } else if (value == XmlConstants.Computed) { storeGeneratedPattern = StoreGeneratedPattern.Computed; } else { // the error is already added by the schema validation event SchemaElement.AssertReaderConsidersSchemaInvalid(reader); return; } _facetValues.Add(EdmProviderManifest.StoreGeneratedPatternFacetName, storeGeneratedPattern); }
internal void HandleConcurrencyModeAttribute(XmlReader reader) { var value = reader.Value; ConcurrencyMode concurrencyMode; if (value == XmlConstants.None) { concurrencyMode = ConcurrencyMode.None; } else if (value == XmlConstants.Fixed) { concurrencyMode = ConcurrencyMode.Fixed; } else { SchemaElement.AssertReaderConsidersSchemaInvalid(reader); // the error is already added by the schema validation event return; } _facetValues.Add(EdmProviderManifest.ConcurrencyModeFacetName, concurrencyMode); }