test/Shared/FunctionalTests.Transitional/TestHelpers/FunctionalTestBase.cs
/// <summary>
/// Creates the metadata files (CSDL/SSDL/MSL) for the SimpleModelContext.
/// </summary>
Creates the metadata files (CSDL/SSDL/MSL) for the SimpleModelContext.
Creates the metadata files ( CSDL / SSDL / MSL ) for the SimpleModelContext .
protected static void CreateMetadataFilesForSimpleModel()
        {
            if (!_metadataForSimpleModelCreated)
            {
                var builder = SimpleModelContext.CreateBuilder();
                ModelHelpers.WriteMetadataFiles(builder, @".\SimpleModel");
                using (var connection = SimpleConnection<SimpleModelContext>())
                {
                    new SimpleModelContext(connection, builder.Build(connection).Compile()).Database.Initialize(false);
                }
                _metadataForSimpleModelCreated = true;
            }
        }
protected static void CreateMetadataFilesForSimpleModel ( ) { if ( ! _metadataForSimpleModelCreated ) { var builder = SimpleModelContext . CreateBuilder ( ) ; ModelHelpers . WriteMetadataFiles ( builder , @".\SimpleModel" ) ; using ( var connection = SimpleConnection < SimpleModelContext > ( ) ) { new SimpleModelContext ( connection , builder . Build ( connection ) . Compile ( ) ) . Database . Initialize ( false ) ; } _metadataForSimpleModelCreated = true ; } }
Creates the metadata files (CSDL/SSDL/MSL) for the SimpleModelContext.
Creates the metadata files ( CSDL / SSDL / MSL ) for the SimpleModelContext .