src/Shared/EntityFramework/Core/Metadata/Edm/MetadataArtifactLoaderFile.cs
// <summary>
// Create an XmlReader around the artifact file
// </summary>
// <returns> An XmlReader that wraps a file </returns>
Create an XmlReader around the artifact file
Create an XmlReader around the artifact file
[ResourceExposure(ResourceScope.None)] 
        [ResourceConsumption(ResourceScope.Machine, ResourceScope.Machine)] 
        private XmlReader CreateXmlReader()
        {
            var readerSettings = Schema.CreateEdmStandardXmlReaderSettings();
            readerSettings.ConformanceLevel = ConformanceLevel.Document;
            return XmlReader.Create(_path, readerSettings);
        }
[ ResourceExposure ( ResourceScope . None ) ] [ ResourceConsumption ( ResourceScope . Machine , ResourceScope . Machine ) ] private XmlReader CreateXmlReader ( ) { var readerSettings = Schema . CreateEdmStandardXmlReaderSettings ( ) ; readerSettings . ConformanceLevel = ConformanceLevel . Document ; return XmlReader . Create ( _path , readerSettings ) ; }
Create an XmlReader around the artifact file
Create an XmlReader around the artifact file
//The file path is not passed through to this method so nothing to expose in this method. //We are not changing the scope of consumption here // we know that we aren't reading a fragment
An XmlReader that wraps a file
An XmlReader that wraps a file