src/Shared/EntityFramework.Community.Shared/UseDatabaseFirst/UseDatabaseFirstManager.cs
/// <summary>Executes to convert the model in conceptual, mapping and storage file.</summary>
/// <param name="modelName">Convert the model in conceptual, mapping and storage file.</param>
Executes to convert the model in conceptual, mapping and storage file.
Executes to convert the model in conceptual mapping and storage file .
internal static void Execute(string modelName)
        {
            var path = System.IO.Directory.GetCurrentDirectory() + "\\" + modelName;
            var fileInfo = new FileInfo(path);
            using (StreamReader reader = new StreamReader(fileInfo.FullName))
            {
                XmlElement conceptualSchemaElement;
                XmlElement mappingElement;
                XmlElement storageSchemaElement;
                string processingValue;
                EntityDesignerUtils.ExtractConceptualMappingAndStorageNodes(reader, out conceptualSchemaElement, out mappingElement, out storageSchemaElement, out processingValue);
                var outputDirectory = fileInfo.Directory.FullName + @"\";
                string modelWithoutExtensions = fileInfo.Name.Replace(".edmx", string.Empty);
                OutputXml(outputDirectory + modelWithoutExtensions + ".csdl", conceptualSchemaElement);
                OutputXml(outputDirectory + modelWithoutExtensions + ".msl", mappingElement);
                OutputXml(outputDirectory + modelWithoutExtensions + ".ssdl", storageSchemaElement);
            }
        }
internal static void Execute ( string modelName ) { var path = System . IO . Directory . GetCurrentDirectory ( ) + " \\ " + modelName ; var fileInfo = new FileInfo ( path ) ; using ( StreamReader reader = new StreamReader ( fileInfo . FullName ) ) { XmlElement conceptualSchemaElement ; XmlElement mappingElement ; XmlElement storageSchemaElement ; string processingValue ; EntityDesignerUtils . ExtractConceptualMappingAndStorageNodes ( reader , out conceptualSchemaElement , out mappingElement , out storageSchemaElement , out processingValue ) ; var outputDirectory = fileInfo . Directory . FullName + @"\" ; string modelWithoutExtensions = fileInfo . Name . Replace ( " " , string . Empty ) ; OutputXml ( outputDirectory + modelWithoutExtensions + " " , conceptualSchemaElement ) ; OutputXml ( outputDirectory + modelWithoutExtensions + " " , mappingElement ) ; OutputXml ( outputDirectory + modelWithoutExtensions + " " , storageSchemaElement ) ; } }
Executes to convert the model in conceptual, mapping and storage file.
Executes to convert the model in conceptual mapping and storage file .
// GET model element // SAVE model element
modelName
string
Convert the model in conceptual, mapping and storage file.
Convert the model in conceptual mapping and storage file .