Skip to main content
All docs
V25.1
  • .NET 8.0+
    • The page you are viewing does not exist in the .NET Framework 4.6.2+ platform documentation. This link will take you to the parent topic of the current section.

    MiddleTierClientBuilder<TDbContext> Class

    Configures a client for a Middle Tier server with a specified DbContext type.

    Namespace: DevExpress.ExpressApp.ApplicationBuilder

    Assembly: DevExpress.EntityFrameworkCore.Security.v25.1.dll

    NuGet Package: DevExpress.ExpressApp.EFCore

    Declaration

    public class MiddleTierClientBuilder<TDbContext>
        where TDbContext :
        DbContext

    Type Parameters

    Name Description
    TDbContext

    The type of a DbContext object.

    Remarks

    Use MiddleTierClientBuilder to configure and create an immutable client for a Middle Tier server. Ensure all configurations are set before creation. Once created, the client cannot be modified.

    The following code sample creates a new client connected to the remote Middle Tier server at http://localhost:5000/ and specifies authentication login and password.

    var builder = new MiddleTierClientBuilder<MainDemoDbContext>()
        .UseServer("http://localhost:5000/")
        .UsePasswordAuthentication("user", "password");
    
    IMiddleTierClient<MainDemoDbContext> client = builder.Build();
    

    Inheritance

    Object
    MiddleTierClientBuilder<TDbContext>
    See Also