System\Data\EntityModel\SchemaObjectModel\Function.cs (13)
307else if (CanHandleElement(reader, XmlConstants.CommandText))
312else if (CanHandleElement(reader, XmlConstants.Parameter))
317else if (CanHandleElement(reader, XmlConstants.ReturnTypeElement))
324if (CanHandleElement(reader, XmlConstants.ValueAnnotation))
330else if (CanHandleElement(reader, XmlConstants.TypeAnnotation))
346else if (CanHandleAttribute(reader, XmlConstants.ReturnType))
351else if (CanHandleAttribute(reader, XmlConstants.AggregateAttribute))
356else if (CanHandleAttribute(reader, XmlConstants.BuiltInAttribute))
361else if (CanHandleAttribute(reader, XmlConstants.StoreFunctionName))
366else if (CanHandleAttribute(reader, XmlConstants.NiladicFunction))
371else if (CanHandleAttribute(reader, XmlConstants.IsComposable))
376else if (CanHandleAttribute(reader, XmlConstants.ParameterTypeSemantics))
381else if (CanHandleAttribute(reader, XmlConstants.Schema))
System\Data\EntityModel\SchemaObjectModel\Schema.cs (54)
49private double _schemaVersion = XmlConstants.UndefinedVersion;
178if (this.SchemaXmlNamespace == XmlConstants.ModelNamespace_1)
180SchemaVersion = XmlConstants.EdmVersionForV1;
182else if (this.SchemaXmlNamespace == XmlConstants.ModelNamespace_1_1)
184SchemaVersion = XmlConstants.EdmVersionForV1_1;
186else if (this.SchemaXmlNamespace == XmlConstants.ModelNamespace_2)
188SchemaVersion = XmlConstants.EdmVersionForV2;
192Debug.Assert(this.SchemaXmlNamespace == XmlConstants.ModelNamespace_3, "Unknown namespace in CSDL");
193SchemaVersion = XmlConstants.EdmVersionForV3;
198if (this.SchemaXmlNamespace == XmlConstants.TargetNamespace_1)
200SchemaVersion = XmlConstants.StoreVersionForV1;
202else if (this.SchemaXmlNamespace == XmlConstants.TargetNamespace_2)
204SchemaVersion = XmlConstants.StoreVersionForV2;
208Debug.Assert(this.SchemaXmlNamespace == XmlConstants.TargetNamespace_3, "Unknown namespace in SSDL");
209SchemaVersion = XmlConstants.StoreVersionForV3;
311if ((this.SchemaVersion == XmlConstants.EdmVersionForV1) || (this.SchemaVersion == XmlConstants.EdmVersionForV1_1))
317Debug.Assert(this.SchemaVersion >= XmlConstants.EdmVersionForV2 || SchemaVersion == XmlConstants.UndefinedVersion, "Have you added a new Edm Version?");
326if ((this.SchemaVersion >= XmlConstants.EdmVersionForV2) && (reader.NodeType == XmlNodeType.Attribute)
373double schemaVersion = SchemaVersion == XmlConstants.UndefinedVersion ? XmlConstants.SchemaVersionLatest : SchemaVersion;
379if (SchemaVersion == XmlConstants.UndefinedVersion)
631else if (CanHandleElement(reader, XmlConstants.EntityType))
636else if (CanHandleElement(reader, XmlConstants.ComplexType))
641else if (CanHandleElement(reader, XmlConstants.Association))
650if (CanHandleElement(reader, XmlConstants.Using))
655else if (CanHandleElement(reader, XmlConstants.Function))
660else if (CanHandleElement(reader, XmlConstants.EnumType))
665else if (CanHandleElement(reader, XmlConstants.ValueTerm))
671else if (CanHandleElement(reader, XmlConstants.Annotations))
682if (CanHandleElement(reader, XmlConstants.EntityContainer))
689if (CanHandleElement(reader, XmlConstants.Function))
699if (CanHandleElement(reader, XmlConstants.TypesElement))
704else if (CanHandleElement(reader, XmlConstants.FunctionsElement))
709else if (CanHandleElement(reader, XmlConstants.Function))
714else if (CanHandleElement(reader, XmlConstants.TypeElement))
731if (namespaceUri == null && localName == XmlConstants.Name)
751else if (CanHandleAttribute(reader, XmlConstants.Alias))
756else if (CanHandleAttribute(reader, XmlConstants.Namespace))
761else if (CanHandleAttribute(reader, XmlConstants.Provider))
766else if (CanHandleAttribute(reader, XmlConstants.ProviderManifestToken))
771else if (reader.NamespaceURI == XmlConstants.AnnotationNamespace && reader.LocalName == XmlConstants.UseStrongSpatialTypes)
1170if (this.SchemaVersion >= XmlConstants.EdmVersionForV2 && this.SchemaManager.SchemaTypes.ContainsKey(function.FQName))
1210namespaces.Add(XmlConstants.ModelNamespace_1);
1211namespaces.Add(XmlConstants.ModelNamespace_1_1);
1212namespaces.Add(XmlConstants.ModelNamespace_2);
1213namespaces.Add(XmlConstants.ModelNamespace_3);
1217namespaces.Add(XmlConstants.TargetNamespace_1);
1218namespaces.Add(XmlConstants.TargetNamespace_2);
1219namespaces.Add(XmlConstants.TargetNamespace_3);
1224namespaces.Add(XmlConstants.ProviderManifestNamespace);
1243var schemaResourceMap = XmlSchemaResource.GetMetadataSchemaResourceMap(XmlConstants.SchemaVersionLatest);
System\Data\EntityModel\SchemaObjectModel\XmlSchemaResource.cs (26)
59XmlSchemaResource[] ssdlImports = { new XmlSchemaResource(XmlConstants.EntityStoreSchemaGeneratorNamespace, "System.Data.Resources.EntityStoreSchemaGenerator.xsd") };
61XmlSchemaResource ssdlSchema = new XmlSchemaResource(XmlConstants.TargetNamespace_1, "System.Data.Resources.SSDLSchema.xsd", ssdlImports);
64if (schemaVersion >= XmlConstants.StoreVersionForV2)
66XmlSchemaResource ssdlSchema2 = new XmlSchemaResource(XmlConstants.TargetNamespace_2, "System.Data.Resources.SSDLSchema_2.xsd", ssdlImports);
70if (schemaVersion >= XmlConstants.StoreVersionForV3)
72Debug.Assert(XmlConstants.SchemaVersionLatest == XmlConstants.StoreVersionForV3, "Did you add a new schema version");
74XmlSchemaResource ssdlSchema3 = new XmlSchemaResource(XmlConstants.TargetNamespace_3, "System.Data.Resources.SSDLSchema_3.xsd", ssdlImports);
78XmlSchemaResource providerManifest = new XmlSchemaResource(XmlConstants.ProviderManifestNamespace, "System.Data.Resources.ProviderServices.ProviderManifest.xsd");
91if (schemaVersion >= XmlConstants.EdmVersionForV2)
97if (schemaVersion >= XmlConstants.EdmVersionForV3)
99Debug.Assert(XmlConstants.SchemaVersionLatest == XmlConstants.EdmVersionForV3, "Did you add a new schema version");
112XmlSchemaResource[] csdlImports = { new XmlSchemaResource(XmlConstants.CodeGenerationSchemaNamespace, "System.Data.Resources.CodeGenerationSchema.xsd") };
115new XmlSchemaResource(XmlConstants.CodeGenerationSchemaNamespace, "System.Data.Resources.CodeGenerationSchema.xsd"),
116new XmlSchemaResource(XmlConstants.AnnotationNamespace, "System.Data.Resources.AnnotationSchema.xsd") };
119new XmlSchemaResource(XmlConstants.CodeGenerationSchemaNamespace, "System.Data.Resources.CodeGenerationSchema.xsd"),
120new XmlSchemaResource(XmlConstants.AnnotationNamespace, "System.Data.Resources.AnnotationSchema.xsd") };
122XmlSchemaResource csdlSchema_1 = new XmlSchemaResource(XmlConstants.ModelNamespace_1, "System.Data.Resources.CSDLSchema_1.xsd", csdlImports);
125XmlSchemaResource csdlSchema_1_1 = new XmlSchemaResource(XmlConstants.ModelNamespace_1_1, "System.Data.Resources.CSDLSchema_1_1.xsd", csdlImports);
128if (schemaVersion >= XmlConstants.EdmVersionForV2)
130XmlSchemaResource csdlSchema_2 = new XmlSchemaResource(XmlConstants.ModelNamespace_2, "System.Data.Resources.CSDLSchema_2.xsd", csdl2Imports);
134if (schemaVersion >= XmlConstants.EdmVersionForV3)
136Debug.Assert(XmlConstants.SchemaVersionLatest == XmlConstants.EdmVersionForV3, "Did you add a new schema version");
138XmlSchemaResource csdlSchema_3 = new XmlSchemaResource(XmlConstants.ModelNamespace_3, "System.Data.Resources.CSDLSchema_3.xsd", csdl3Imports);
System\Data\Metadata\MetadataArtifactLoader.cs (6)
321return string.Compare(extn, XmlConstants.CSpaceSchemaExtension, StringComparison.OrdinalIgnoreCase) == 0;
339return string.Compare(extn, XmlConstants.SSpaceSchemaExtension, StringComparison.OrdinalIgnoreCase) == 0;
357return string.Compare(extn, XmlConstants.CSSpaceSchemaExtension, StringComparison.OrdinalIgnoreCase) == 0;
391string.Compare(extn, XmlConstants.CSpaceSchemaExtension, StringComparison.OrdinalIgnoreCase) == 0 ||
392string.Compare(extn, XmlConstants.SSpaceSchemaExtension, StringComparison.OrdinalIgnoreCase) == 0 ||
393string.Compare(extn, XmlConstants.CSSpaceSchemaExtension, StringComparison.OrdinalIgnoreCase) == 0