17 instantiations of XmlSchemaResource
System.Data.Entity (17)
System\Data\EntityModel\SchemaObjectModel\XmlSchemaResource.cs (17)
59
XmlSchemaResource[] ssdlImports = { new
XmlSchemaResource
(XmlConstants.EntityStoreSchemaGeneratorNamespace, "System.Data.Resources.EntityStoreSchemaGenerator.xsd") };
61
XmlSchemaResource ssdlSchema = new
XmlSchemaResource
(XmlConstants.TargetNamespace_1, "System.Data.Resources.SSDLSchema.xsd", ssdlImports);
66
XmlSchemaResource ssdlSchema2 = new
XmlSchemaResource
(XmlConstants.TargetNamespace_2, "System.Data.Resources.SSDLSchema_2.xsd", ssdlImports);
74
XmlSchemaResource ssdlSchema3 = new
XmlSchemaResource
(XmlConstants.TargetNamespace_3, "System.Data.Resources.SSDLSchema_3.xsd", ssdlImports);
78
XmlSchemaResource providerManifest = new
XmlSchemaResource
(XmlConstants.ProviderManifestNamespace, "System.Data.Resources.ProviderServices.ProviderManifest.xsd");
88
XmlSchemaResource msl1 = new
XmlSchemaResource
(StorageMslConstructs.NamespaceUriV1, StorageMslConstructs.ResourceXsdNameV1);
93
XmlSchemaResource msl2 = new
XmlSchemaResource
(StorageMslConstructs.NamespaceUriV2, StorageMslConstructs.ResourceXsdNameV2);
100
XmlSchemaResource msl3 = new
XmlSchemaResource
(StorageMslConstructs.NamespaceUriV3, StorageMslConstructs.ResourceXsdNameV3);
112
XmlSchemaResource[] csdlImports = { new
XmlSchemaResource
(XmlConstants.CodeGenerationSchemaNamespace, "System.Data.Resources.CodeGenerationSchema.xsd") };
115
new
XmlSchemaResource
(XmlConstants.CodeGenerationSchemaNamespace, "System.Data.Resources.CodeGenerationSchema.xsd"),
116
new
XmlSchemaResource
(XmlConstants.AnnotationNamespace, "System.Data.Resources.AnnotationSchema.xsd") };
119
new
XmlSchemaResource
(XmlConstants.CodeGenerationSchemaNamespace, "System.Data.Resources.CodeGenerationSchema.xsd"),
120
new
XmlSchemaResource
(XmlConstants.AnnotationNamespace, "System.Data.Resources.AnnotationSchema.xsd") };
122
XmlSchemaResource csdlSchema_1 = new
XmlSchemaResource
(XmlConstants.ModelNamespace_1, "System.Data.Resources.CSDLSchema_1.xsd", csdlImports);
125
XmlSchemaResource csdlSchema_1_1 = new
XmlSchemaResource
(XmlConstants.ModelNamespace_1_1, "System.Data.Resources.CSDLSchema_1_1.xsd", csdlImports);
130
XmlSchemaResource csdlSchema_2 = new
XmlSchemaResource
(XmlConstants.ModelNamespace_2, "System.Data.Resources.CSDLSchema_2.xsd", csdl2Imports);
138
XmlSchemaResource csdlSchema_3 = new
XmlSchemaResource
(XmlConstants.ModelNamespace_3, "System.Data.Resources.CSDLSchema_3.xsd", csdl3Imports);
35 references to XmlSchemaResource
System.Data.Entity (35)
System\Data\EntityModel\SchemaObjectModel\Schema.cs (10)
350
foreach (
var
schemaResource in
XmlSchemaResource
.GetMetadataSchemaResourceMap(this.SchemaVersion).Values)
374
foreach (
var
schemaResource in
XmlSchemaResource
.GetMetadataSchemaResourceMap(schemaVersion).Values)
390
private static void AddAllSchemaResourceNamespaceNames(HashSet<string> hashSet,
XmlSchemaResource
schemaResource)
393
foreach(
var
import in schemaResource.ImportedSchemas)
1243
var schemaResourceMap =
XmlSchemaResource
.GetMetadataSchemaResourceMap(XmlConstants.SchemaVersionLatest);
1248
XmlSchemaResource
schemaResource = schemaResourceMap[namespaceName];
1257
private static void AddXmlSchemaToSet(XmlSchemaSet schemaSet,
XmlSchemaResource
schemaResource, HashSet<string> schemasAlreadyAdded)
1260
foreach (
var
import in schemaResource.ImportedSchemas)
System\Data\EntityModel\SchemaObjectModel\XmlSchemaResource.cs (25)
18
private static
XmlSchemaResource
[] EmptyImportList = new
XmlSchemaResource
[0];
19
public XmlSchemaResource(string namespaceUri, string resourceName,
XmlSchemaResource
[] importedSchemas)
38
internal
XmlSchemaResource
[] ImportedSchemas;
45
internal static Dictionary<string,
XmlSchemaResource
> GetMetadataSchemaResourceMap(double schemaVersion)
47
Dictionary<string,
XmlSchemaResource
> schemaResourceMap = new Dictionary<string,
XmlSchemaResource
>(StringComparer.Ordinal);
57
internal static void AddStoreSchemaResourceMapEntries(Dictionary<string,
XmlSchemaResource
> schemaResourceMap, double schemaVersion)
59
XmlSchemaResource
[] ssdlImports = { new XmlSchemaResource(XmlConstants.EntityStoreSchemaGeneratorNamespace, "System.Data.Resources.EntityStoreSchemaGenerator.xsd") };
61
XmlSchemaResource
ssdlSchema = new XmlSchemaResource(XmlConstants.TargetNamespace_1, "System.Data.Resources.SSDLSchema.xsd", ssdlImports);
66
XmlSchemaResource
ssdlSchema2 = new XmlSchemaResource(XmlConstants.TargetNamespace_2, "System.Data.Resources.SSDLSchema_2.xsd", ssdlImports);
74
XmlSchemaResource
ssdlSchema3 = new XmlSchemaResource(XmlConstants.TargetNamespace_3, "System.Data.Resources.SSDLSchema_3.xsd", ssdlImports);
78
XmlSchemaResource
providerManifest = new XmlSchemaResource(XmlConstants.ProviderManifestNamespace, "System.Data.Resources.ProviderServices.ProviderManifest.xsd");
86
internal static void AddMappingSchemaResourceMapEntries(Dictionary<string,
XmlSchemaResource
> schemaResourceMap, double schemaVersion)
88
XmlSchemaResource
msl1 = new XmlSchemaResource(StorageMslConstructs.NamespaceUriV1, StorageMslConstructs.ResourceXsdNameV1);
93
XmlSchemaResource
msl2 = new XmlSchemaResource(StorageMslConstructs.NamespaceUriV2, StorageMslConstructs.ResourceXsdNameV2);
100
XmlSchemaResource
msl3 = new XmlSchemaResource(StorageMslConstructs.NamespaceUriV3, StorageMslConstructs.ResourceXsdNameV3);
110
internal static void AddEdmSchemaResourceMapEntries(Dictionary<string,
XmlSchemaResource
> schemaResourceMap, double schemaVersion)
112
XmlSchemaResource
[] csdlImports = { new XmlSchemaResource(XmlConstants.CodeGenerationSchemaNamespace, "System.Data.Resources.CodeGenerationSchema.xsd") };
114
XmlSchemaResource
[] csdl2Imports = {
118
XmlSchemaResource
[] csdl3Imports = {
122
XmlSchemaResource
csdlSchema_1 = new XmlSchemaResource(XmlConstants.ModelNamespace_1, "System.Data.Resources.CSDLSchema_1.xsd", csdlImports);
125
XmlSchemaResource
csdlSchema_1_1 = new XmlSchemaResource(XmlConstants.ModelNamespace_1_1, "System.Data.Resources.CSDLSchema_1_1.xsd", csdlImports);
130
XmlSchemaResource
csdlSchema_2 = new XmlSchemaResource(XmlConstants.ModelNamespace_2, "System.Data.Resources.CSDLSchema_2.xsd", csdl2Imports);
138
XmlSchemaResource
csdlSchema_3 = new XmlSchemaResource(XmlConstants.ModelNamespace_3, "System.Data.Resources.CSDLSchema_3.xsd", csdl3Imports);