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
Methods
GetDbContext(IServiceProvider, ISilverbackContext?)
Gets the factory method that creates the DbContext instance.
DbContext GetDbContext(IServiceProvider serviceProvider, ISilverbackContext? context = null)
Parameters
serviceProviderIServiceProviderThe IServiceProvider to be used to resolve the DbContext.
contextISilverbackContextThe ISilverbackContext.