EntityAffinityProvider Class
Namespace: PTS.EntityLayer.Affinity
Assembly: PTS.EntityLayer.Affinity.dll
Syntax
public class EntityAffinityProvider
Inheritance
System.Object
EntityAffinityProvider
Constructors
EntityAffinityProvider(DbContext)
Declaration
public EntityAffinityProvider(DbContext context)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.EntityFrameworkCore.DbContext | context |
Properties
Context
Declaration
protected DbContext Context { get; }
Property Value
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbContext |
Methods
AttachToContext(DbContext)
Declaration
public static EntityAffinityProvider AttachToContext(DbContext context)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.EntityFrameworkCore.DbContext | context |
Returns
Type | Description |
---|---|
EntityAffinityProvider |
GetContext(Object)
Declaration
public static DbContext GetContext(object entity)
Parameters
Type | Name | Description |
---|---|---|
System.Object | entity |
Returns
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbContext |
RemoveContext(Object)
Declaration
public static void RemoveContext(object entity)
Parameters
Type | Name | Description |
---|---|---|
System.Object | entity |
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()