Skip to main content
All docs
V25.1
  • .NET Framework 4.6.2+

    EasyTestFixtureContext.DropDB(String) Method

    Deletes the specified database. This method can potentially destroy a lot of valuable data and should be used with caution.

    Namespace: DevExpress.EasyTest.Framework

    Assembly: DevExpress.EasyTest.v25.1.dll

    NuGet Package: DevExpress.EasyTest

    Declaration

    public void DropDB(
        string dbName
    )

    Parameters

    Name Type Description
    dbName String

    A deleted database’s name.

    Remarks

    The database name must be registered with the RegisterDatabases(IEasyTestDatabaseOptions[]) method.

    Call the DropDB method before running an application.

    public void Test() { 
        FixtureContext.DropDB(MainDemoDBName); 
        var appContext = FixtureContext.CreateApplicationContext(BlazorAppName); 
        appContext.RunApplication(); 
        // 
    } 
    
    See Also