Table of Contents

Interface IEntityFrameworkSettings

Namespace
Silverback.Storage
Assembly
Silverback.Storage.EntityFramework.dll

The basic settings of the Entity Framework based implementations.

public interface IEntityFrameworkSettings

Properties

DbContextType

Gets the type of the DbContext to be used to access the database.

Type DbContextType { get; }

Property Value

Type

Methods

GetDbContext(IServiceProvider, ISilverbackContext?)

Gets the factory method that creates the DbContext instance.

DbContext GetDbContext(IServiceProvider serviceProvider, ISilverbackContext? context = null)

Parameters

serviceProvider IServiceProvider

The IServiceProvider to be used to resolve the DbContext.

context ISilverbackContext

The ISilverbackContext.

Returns

DbContext

The DbContext instance.