IEntityServiceScope Interface
Namespace: PTS.EntityLayer.Extensibility
Assembly: PTS.EntityLayer.Extensibility.dll
Default current context container for dependency injection services
Syntax
public interface IEntityServiceScope
Properties
Context
Gets context for current service scope.
Declaration
DbContext Context { get; }
Property Value
| Type | Description |
|---|---|
| Microsoft.EntityFrameworkCore.DbContext | Current Microsoft.EntityFrameworkCore.DbContext. |
IsLocked
Gets a value indicating whether the context can be set to a new value.
Declaration
bool IsLocked { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
ServiceProvider
Gets the provider for current service scope.
Declaration
IServiceProvider ServiceProvider { get; }
Property Value
| Type | Description |
|---|---|
| System.IServiceProvider |
Methods
Bind(DbContext, IServiceProvider, Boolean)
Assigns context instance to current service.
Declaration
void Bind(DbContext context, IServiceProvider provider, bool isLocked)
Parameters
| Type | Name | Description |
|---|---|---|
| Microsoft.EntityFrameworkCore.DbContext | context | The context to set. |
| System.IServiceProvider | provider | |
| System.Boolean | isLocked |