EntityAffinityExtensions Class
Namespace: PTS
Assembly: PTS.EntityLayer.Affinity.dll
Syntax
public static class EntityAffinityExtensions
Inheritance
System.Object
EntityAffinityExtensions
Methods
Context(Object, Boolean)
Declaration
public static DbContext Context(this object entity, bool require = true)
Parameters
Type | Name | Description |
---|---|---|
System.Object | entity | |
System.Boolean | require |
Returns
Type | Description |
---|---|
Microsoft.EntityFrameworkCore.DbContext |
Context<TContext>(Object, Boolean)
Declaration
public static TContext Context<TContext>(this object entity, bool require = true)
where TContext : class
Parameters
Type | Name | Description |
---|---|---|
System.Object | entity | |
System.Boolean | require |
Returns
Type | Description |
---|---|
TContext |
Type Parameters
Name | Description |
---|---|
TContext |
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()