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