7 types derived from MetadataArtifactLoader
System.Data.Entity (7)
System\Data\Metadata\MetadataArtifactLoaderComposite.cs (2)
33internal class MetadataArtifactLoaderComposite : MetadataArtifactLoader, IEnumerable<MetadataArtifactLoader>
System\Data\Metadata\MetadataArtifactLoaderCompositeFile.cs (1)
32internal class MetadataArtifactLoaderCompositeFile : MetadataArtifactLoader
System\Data\Metadata\MetadataArtifactLoaderCompositeResource.cs (1)
25internal class MetadataArtifactLoaderCompositeResource : MetadataArtifactLoader
System\Data\Metadata\MetadataArtifactLoaderFile.cs (1)
31internal class MetadataArtifactLoaderFile : MetadataArtifactLoader, IComparable
System\Data\Metadata\MetadataArtifactLoaderResource.cs (1)
22internal class MetadataArtifactLoaderResource : MetadataArtifactLoader, IComparable
System\Data\Metadata\MetadataArtifactLoaderXmlReaderWrapper.cs (1)
26internal class MetadataArtifactLoaderXmlReaderWrapper : MetadataArtifactLoader, IComparable
97 references to MetadataArtifactLoader
System.Data.Entity (97)
System\Data\EntityClient\EntityConnection.cs (9)
67private MetadataArtifactLoader _artifactLoader; 394private bool ShouldRecalculateMetadataArtifactLoader(List<MetadataArtifactLoader> loaders) 421List<MetadataArtifactLoader> loaders = new List<MetadataArtifactLoader>(); 430_artifactLoader = MetadataArtifactLoader.Create(loaders); 435_artifactLoader = MetadataArtifactLoader.Create(MetadataCache.SplitPaths(paths)); 440_artifactLoader = MetadataArtifactLoader.Create(loaders); 944private static EdmItemCollection LoadEdmItemCollection(MetadataWorkspace workspace, MetadataArtifactLoader artifactLoader) 967MetadataArtifactLoader artifactLoader)
System\Data\Mapping\StorageMappingItemCollection.cs (4)
93MetadataArtifactLoader composite = null; 97composite = MetadataArtifactLoader.CreateCompositeFromFilePaths(filePaths, XmlConstants.CSSpaceSchemaExtension); 127MetadataArtifactLoader composite = MetadataArtifactLoader.CreateCompositeFromXmlReaders(xmlReaders);
System\Data\Metadata\EdmItemCollection.cs (4)
95MetadataArtifactLoader composite = MetadataArtifactLoader.CreateCompositeFromXmlReaders(xmlReaders); 121MetadataArtifactLoader composite = null; 125composite = MetadataArtifactLoader.CreateCompositeFromFilePaths(filePaths, XmlConstants.CSpaceSchemaExtension);
System\Data\Metadata\MetadataArtifactLoader.cs (23)
61public static MetadataArtifactLoader Create(string path, 81internal static MetadataArtifactLoader Create(string path, 92if (MetadataArtifactLoader.PathStartsWithResPrefix(path)) 99string normalizedPath = MetadataArtifactLoader.NormalizeFilePaths(path); 113if (!MetadataArtifactLoader.IsValidArtifact(normalizedPath)) 132public static MetadataArtifactLoader Create(List<MetadataArtifactLoader> allCollections) 145public static MetadataArtifactLoader CreateCompositeFromFilePaths(IEnumerable<string> filePaths, string validExtension) 154internal static MetadataArtifactLoader CreateCompositeFromFilePaths(IEnumerable<string> filePaths, string validExtension, MetadataArtifactAssemblyResolver resolver) 166List<MetadataArtifactLoader> loaders = new List<MetadataArtifactLoader>(); 182loaders.Add(MetadataArtifactLoader.Create( 192return MetadataArtifactLoader.Create(loaders); 201public static MetadataArtifactLoader CreateCompositeFromXmlReaders(IEnumerable<XmlReader> xmlReaders) 203List<MetadataArtifactLoader> loaders = new List<MetadataArtifactLoader>(); 215return MetadataArtifactLoader.Create(loaders); 253if (MetadataArtifactLoader.IsArtifactOfDataSpace(Path, spaceToGet)) 288public abstract List<XmlReader> GetReaders(Dictionary<MetadataArtifactLoader, XmlReader> sourceDictionary); 305return path.StartsWith(MetadataArtifactLoader.resPathPrefix, StringComparison.OrdinalIgnoreCase); 409return MetadataArtifactLoader.IsCSpaceArtifact(resource); 412return MetadataArtifactLoader.IsSSpaceArtifact(resource); 415return MetadataArtifactLoader.IsCSSpaceArtifact(resource);
System\Data\Metadata\MetadataArtifactLoaderComposite.cs (12)
38private readonly ReadOnlyCollection<MetadataArtifactLoader> _children; 44public MetadataArtifactLoaderComposite(List<MetadataArtifactLoader> children) 47_children = new List<MetadataArtifactLoader>(children).AsReadOnly(); 57foreach (MetadataArtifactLoader loader in _children) 79foreach (MetadataArtifactLoader loader in _children) 97foreach (MetadataArtifactLoader loader in _children) 114foreach (MetadataArtifactLoader loader in _children) 130foreach (MetadataArtifactLoader resource in _children) 142public override List<XmlReader> GetReaders(Dictionary<MetadataArtifactLoader, XmlReader> sourceDictionary) 146foreach (MetadataArtifactLoader resource in _children) 163foreach (MetadataArtifactLoader resource in _children) 173public IEnumerator<MetadataArtifactLoader> GetEnumerator()
System\Data\Metadata\MetadataArtifactLoaderCompositeFile.cs (2)
216public override List<XmlReader> GetReaders(Dictionary<MetadataArtifactLoader, XmlReader> sourceDictionary) 267MetadataArtifactLoader.wildcard + extension,
System\Data\Metadata\MetadataArtifactLoaderCompositeResource.cs (9)
123public override List<XmlReader> GetReaders(Dictionary<MetadataArtifactLoader, XmlReader> sourceDictionary) 165if (assemblyName == MetadataArtifactLoader.wildcard) 292internal static MetadataArtifactLoader CreateResourceLoader(string path, ExtensionCheck extensionCheck, string validExtension, ICollection<string> uriRegistry, MetadataArtifactAssemblyResolver resolver) 295Debug.Assert(MetadataArtifactLoader.PathStartsWithResPrefix(path)); 332MetadataArtifactLoader.CheckArtifactExtension(resourceName, validExtension); 336if (!MetadataArtifactLoader.IsValidArtifact(resourceName)) 354int prefixLength = MetadataArtifactLoader.resPathPrefix.Length; 358MetadataArtifactLoader.resPathSeparator, 359MetadataArtifactLoader.altPathSeparator
System\Data\Metadata\MetadataArtifactLoaderFile.cs (4)
105if (!_alreadyLoaded && MetadataArtifactLoader.IsArtifactOfDataSpace(_path, spaceToGet)) 118if (!_alreadyLoaded && MetadataArtifactLoader.IsArtifactOfDataSpace(_path, spaceToGet)) 143public override List<XmlReader> GetReaders(Dictionary<MetadataArtifactLoader, XmlReader> sourceDictionary) 167if (!_alreadyLoaded && MetadataArtifactLoader.IsArtifactOfDataSpace(_path, spaceToGet))
System\Data\Metadata\MetadataArtifactLoaderResource.cs (3)
111if (!_alreadyLoaded && MetadataArtifactLoader.IsArtifactOfDataSpace(Path, spaceToGet)) 136public override List<XmlReader> GetReaders(Dictionary<MetadataArtifactLoader, XmlReader> sourceDictionary) 183if (MetadataArtifactLoader.IsArtifactOfDataSpace(Path, spaceToGet))
System\Data\Metadata\MetadataArtifactLoaderXmlReaderWrapper.cs (3)
113if (MetadataArtifactLoader.IsArtifactOfDataSpace(Path, spaceToGet)) 133public override List<XmlReader> GetReaders(Dictionary<MetadataArtifactLoader, XmlReader> sourceDictionary) 156if (MetadataArtifactLoader.IsArtifactOfDataSpace(Path, spaceToGet))
System\Data\Metadata\MetadataCache.cs (18)
54private static Memoizer<string, List<MetadataArtifactLoader>> _artifactLoaderCache = new Memoizer<string, List<MetadataArtifactLoader>>(MetadataCache.SplitPaths, null); 106internal static List<MetadataArtifactLoader> SplitPaths(string paths) 115List<MetadataArtifactLoader> loaders = new List<MetadataArtifactLoader>(); 180loaders.Add(MetadataArtifactLoader.Create( 182MetadataArtifactLoader.ExtensionCheck.All, // validate the extension against all acceptable values 262MetadataArtifactLoader loader, 283MetadataArtifactLoader loader, 296internal static List<MetadataArtifactLoader> GetOrCreateMetdataArtifactLoader(string paths) 406Memoizer<string, List<MetadataArtifactLoader>> artifactLoaderCacheTemp = 407new Memoizer<string, List<MetadataArtifactLoader>>(MetadataCache.SplitPaths, null); 634internal void LoadEdmItemCollection(MetadataArtifactLoader loader) 695internal void LoadStoreCollection(EdmItemCollection edmItemCollection, MetadataArtifactLoader loader) 821private MetadataArtifactLoader _loader; 823public EdmItemCollectionLoader(MetadataArtifactLoader loader) 843private MetadataArtifactLoader _loader; 850internal StoreItemCollectionLoader(EdmItemCollection edmItemCollection, MetadataArtifactLoader loader)
System\Data\Metadata\MetadataWorkspace.cs (2)
83MetadataArtifactLoader composite = MetadataArtifactLoader.CreateCompositeFromFilePaths(paths.ToArray(), "", new CustomAssemblyResolver(wildcardAssemblies, resolveReference));
System\Data\Metadata\StoreItemCollection.cs (4)
128MetadataArtifactLoader composite = MetadataArtifactLoader.CreateCompositeFromXmlReaders(xmlReaders); 158MetadataArtifactLoader composite = null; 162composite = MetadataArtifactLoader.CreateCompositeFromFilePaths(enumerableFilePaths, XmlConstants.SSpaceSchemaExtension);