Table of Contents

Class CloudStorageDbContextDependencies

Namespace
CloudStorageORM.Infrastructure
Assembly
CloudStorageORM.dll

Provides EF Core DbContext dependency implementations for CloudStorageORM.

public class CloudStorageDbContextDependencies : IDbContextDependencies
Inheritance
CloudStorageDbContextDependencies
Implements
Inherited Members

Constructors

CloudStorageDbContextDependencies(IModel, ICurrentDbContext, IChangeDetector, IDbSetSource, IEntityFinderSource, IEntityGraphAttacher, IAsyncQueryProvider, IStateManager, IExceptionDetector, IDiagnosticsLogger<Update>, IDiagnosticsLogger<Infrastructure>)

Initializes a new dependency container used by CloudStorageORM DbContext services.

public CloudStorageDbContextDependencies(IModel model, ICurrentDbContext currentContext, IChangeDetector changeDetector, IDbSetSource setSource, IEntityFinderSource entityFinderSource, IEntityGraphAttacher entityGraphAttacher, IAsyncQueryProvider queryProvider, IStateManager stateManager, IExceptionDetector exceptionDetector, IDiagnosticsLogger<DbLoggerCategory.Update> updateLogger, IDiagnosticsLogger<DbLoggerCategory.Infrastructure> infrastructureLogger)

Parameters

model IModel

Resolved EF model.

currentContext ICurrentDbContext

Current DbContext accessor.

changeDetector IChangeDetector

EF change detector.

setSource IDbSetSource

EF DbSet source.

entityFinderSource IEntityFinderSource

EF entity finder source.

entityGraphAttacher IEntityGraphAttacher

EF entity graph attacher.

queryProvider IAsyncQueryProvider

Async query provider.

stateManager IStateManager

EF state manager.

exceptionDetector IExceptionDetector

EF exception detector.

updateLogger IDiagnosticsLogger<DbLoggerCategory.Update>

Update diagnostics logger.

infrastructureLogger IDiagnosticsLogger<DbLoggerCategory.Infrastructure>

Infrastructure diagnostics logger.

Examples

var dependencies = new CloudStorageDbContextDependencies(...);

Properties

ChangeDetector

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public IChangeDetector ChangeDetector { get; }

Property Value

IChangeDetector

ContextOptions

public DbContextOptions ContextOptions { get; }

Property Value

DbContextOptions

DesignTimeModel

public IModel DesignTimeModel { get; }

Property Value

IModel

EntityFinderFactory

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public IEntityFinderFactory EntityFinderFactory { get; }

Property Value

IEntityFinderFactory

EntityGraphAttacher

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public IEntityGraphAttacher EntityGraphAttacher { get; }

Property Value

IEntityGraphAttacher

ExceptionDetector

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public IExceptionDetector ExceptionDetector { get; }

Property Value

IExceptionDetector

InfrastructureLogger

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public IDiagnosticsLogger<DbLoggerCategory.Infrastructure> InfrastructureLogger { get; }

Property Value

IDiagnosticsLogger<DbLoggerCategory.Infrastructure>

InternalServiceProvider

public IServiceProvider InternalServiceProvider { get; }

Property Value

IServiceProvider

Model

public IModel Model { get; }

Property Value

IModel

QueryProvider

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public IAsyncQueryProvider QueryProvider { get; }

Property Value

IAsyncQueryProvider

SetSource

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public IDbSetSource SetSource { get; }

Property Value

IDbSetSource

StateManager

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public IStateManager StateManager { get; }

Property Value

IStateManager

TransactionManager

public IDbContextTransactionManager TransactionManager { get; }

Property Value

IDbContextTransactionManager

UpdateLogger

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public IDiagnosticsLogger<DbLoggerCategory.Update> UpdateLogger { get; }

Property Value

IDiagnosticsLogger<DbLoggerCategory.Update>