Back to Devexpress

DbContextBuilder<TContext> Class

expressappframework-devexpress-dot-expressapp-dot-applicationbuilder-dot-dbcontextbuilder-1.md

latest1.7 KB
Original Source

DbContextBuilder<TContext> Class

Allows you to configure DbContext in your WinForms application.

Namespace : DevExpress.ExpressApp.ApplicationBuilder

Assembly : DevExpress.ExpressApp.EFCore.v25.2.dll

NuGet Package : DevExpress.ExpressApp.EFCore

Declaration

csharp
public sealed class DbContextBuilder<TContext>
    where TContext :
    IXafApplicationBuilder<TContext>,
    IAccessor<IServiceCollection>
vb
Public NotInheritable Class DbContextBuilder(Of TContext As {IXafApplicationBuilder(Of TContext), IAccessor(Of IServiceCollection)})

Type Parameters

NameDescription
TContext

The IWinApplicationBuilder type.

|

Inheritance

Object DbContextBuilder<TContext>

Extension Methods

WithAuditedDbContext<TContext>(Action<AuditedDbContextConfigurator>, ServiceLifetime)

See Also

DbContextBuilder<TContext> Members

DevExpress.ExpressApp.ApplicationBuilder Namespace