EntityService Class
Namespace: PTS.EntityLayer.Extensibility
Assembly: PTS.EntityLayer.Extensibility.dll
Default implementation for dependency service
Syntax
public abstract class EntityService
Inheritance
System.Object
EntityService
Constructors
EntityService(IEntityServiceScope)
Initializes a new instance of the EntityService class.
Declaration
public EntityService(IEntityServiceScope container)
Parameters
Type | Name | Description |
---|---|---|
IEntityServiceScope | container | Service container with current context. |
Properties
Context
Gets current context available in service scope.
Declaration
protected DbContext Context { get; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbContext | Current context for given service scope. |
ServiceProvider
Declaration
protected IServiceProvider ServiceProvider { get; }
Property Value
Type | Description |
---|---|
System.IServiceProvider |
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()