test/Shared/FunctionalTests.Transitional/TestHelpers/FunctionalTestBase.cs
/// <summary>
/// Drops the database that would be used for the context. Usually used to avoid errors during initialization.
/// </summary>
/// <param name="createContext"> A func to create the context. </param>
Drops the database that would be used for the context. Usually used to avoid errors during initialization.
Drops the database that would be used for the context . Usually used to avoid errors during initialization .
protected static void DropDatabase(Func<DbContext> createContext)
        {
            using (var context = createContext())
            {
                ExtendedSqlAzureExecutionStrategy.ExecuteNew(
                    () => context.Database.Delete());
            }
        }
protected static void DropDatabase ( Func < DbContext > createContext ) { using ( var context = createContext ( ) ) { ExtendedSqlAzureExecutionStrategy . ExecuteNew ( ( ) => context . Database . Delete ( ) ) ; } }
Drops the database that would be used for the context.
Drops the database that would be used for the context .
createContext
Func<DbContext>
A func to create the context.
A func to create the context .