Repository Class
Assembly: PTS.DomainFramework.Infrastructure.dll
Syntax
public abstract class Repository : IRepository, IQueryable, IEnumerable
Inheritance
System.Object
Repository
Implements
System.Linq.IQueryable
System.Collections.IEnumerable
Constructors
Repository()
Declaration
Repository(DbContext)
Declaration
public Repository(DbContext dbContext)
Parameters
Type |
Name |
Description |
Microsoft.EntityFrameworkCore.DbContext |
dbContext |
|
Properties
DbContext
Declaration
protected DbContext DbContext { get; }
Property Value
Type |
Description |
Microsoft.EntityFrameworkCore.DbContext |
|
ElementType
Declaration
public Type ElementType { get; }
Property Value
Type |
Description |
System.Type |
|
EventHandler
Declaration
protected ITriggerHandler EventHandler { get; }
Property Value
Expression
Declaration
public Expression Expression { get; }
Property Value
Type |
Description |
System.Linq.Expressions.Expression |
|
Source
Declaration
protected abstract IQueryable Source { get; }
Property Value
Type |
Description |
System.Linq.IQueryable |
|
Methods
Make(Type, DbContext, ITriggerHandler)
Declaration
public static IRepository Make(Type entityType, DbContext dbContext, ITriggerHandler eventHandler)
Parameters
Type |
Name |
Description |
System.Type |
entityType |
|
Microsoft.EntityFrameworkCore.DbContext |
dbContext |
|
ITriggerHandler |
eventHandler |
|
Returns
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type |
Description |
System.Collections.IEnumerator |
|
IQueryable.Provider
Declaration
IQueryProvider IQueryable.Provider { get; }
Returns
Type |
Description |
System.Linq.IQueryProvider |
|
Implements
System.Linq.IQueryable
System.Collections.IEnumerable
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()
Extension Methods