IRepository<TEntity> Interface
Assembly: PTS.DomainFramework.Domain.dll
Syntax
public interface IRepository<TEntity> : IQueryable<TEntity>, IEnumerable<TEntity>, IRepository, IQueryable, IEnumerable where TEntity : class
Type Parameters
Methods
Add(TEntity)
Declaration
Parameters
Type |
Name |
Description |
TEntity |
entity |
|
Add(TEntity, Object)
Declaration
void Add(TEntity entity, object sender)
Parameters
Type |
Name |
Description |
TEntity |
entity |
|
System.Object |
sender |
|
AddAsync(TEntity, Object, CancellationToken)
Declaration
virtual Task AddAsync(TEntity entity, object sender, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type |
Name |
Description |
TEntity |
entity |
|
System.Object |
sender |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
AddAsync(TEntity, CancellationToken)
Declaration
virtual Task AddAsync(TEntity entity, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type |
Name |
Description |
TEntity |
entity |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
AddRange(TEntity[])
Declaration
void AddRange(params TEntity[] entities)
Parameters
Type |
Name |
Description |
TEntity[] |
entities |
|
AddRange(IEnumerable<TEntity>)
Declaration
void AddRange(IEnumerable<TEntity> entities)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<TEntity> |
entities |
|
AddRange(IEnumerable<TEntity>, Object)
Declaration
void AddRange(IEnumerable<TEntity> entities, object sender)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<TEntity> |
entities |
|
System.Object |
sender |
|
AddRangeAsync(TEntity[])
Declaration
virtual Task AddRangeAsync(params TEntity[] entities)
Parameters
Type |
Name |
Description |
TEntity[] |
entities |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
AddRangeAsync(IEnumerable<TEntity>, Object, CancellationToken)
Declaration
virtual Task AddRangeAsync(IEnumerable<TEntity> entities, object sender, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<TEntity> |
entities |
|
System.Object |
sender |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
AddRangeAsync(IEnumerable<TEntity>, CancellationToken)
Declaration
virtual Task AddRangeAsync(IEnumerable<TEntity> entities, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<TEntity> |
entities |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Attach(TEntity)
Declaration
void Attach(TEntity entity)
Parameters
Type |
Name |
Description |
TEntity |
entity |
|
Attach(TEntity, Object)
Declaration
void Attach(TEntity entity, object sender)
Parameters
Type |
Name |
Description |
TEntity |
entity |
|
System.Object |
sender |
|
AttachRange(TEntity[])
Declaration
void AttachRange(params TEntity[] entities)
Parameters
Type |
Name |
Description |
TEntity[] |
entities |
|
AttachRange(IEnumerable<TEntity>)
Declaration
void AttachRange(IEnumerable<TEntity> entities)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<TEntity> |
entities |
|
AttachRange(IEnumerable<TEntity>, Object)
Declaration
void AttachRange(IEnumerable<TEntity> entities, object sender)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<TEntity> |
entities |
|
System.Object |
sender |
|
Find(Object[])
Declaration
TEntity Find(params object[] keyValues)
Parameters
Type |
Name |
Description |
System.Object[] |
keyValues |
|
Returns
FindAsync(Object[])
Declaration
virtual ValueTask<TEntity> FindAsync(params object[] keyValues)
Parameters
Type |
Name |
Description |
System.Object[] |
keyValues |
|
Returns
Type |
Description |
System.Threading.Tasks.ValueTask<TEntity> |
|
FindAsync(Object[], CancellationToken)
Declaration
virtual ValueTask<TEntity> FindAsync(object[] keyValues, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
System.Object[] |
keyValues |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.ValueTask<TEntity> |
|
Remove(TEntity)
Declaration
void Remove(TEntity entity)
Parameters
Type |
Name |
Description |
TEntity |
entity |
|
Remove(TEntity, Object)
Declaration
void Remove(TEntity entity, object sender)
Parameters
Type |
Name |
Description |
TEntity |
entity |
|
System.Object |
sender |
|
RemoveRange(TEntity[])
Declaration
void RemoveRange(params TEntity[] entities)
Parameters
Type |
Name |
Description |
TEntity[] |
entities |
|
RemoveRange(IEnumerable<TEntity>)
Declaration
void RemoveRange(IEnumerable<TEntity> entities)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<TEntity> |
entities |
|
RemoveRange(IEnumerable<TEntity>, Object)
Declaration
void RemoveRange(IEnumerable<TEntity> entities, object sender)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<TEntity> |
entities |
|
System.Object |
sender |
|
TryAdd(TEntity)
Declaration
bool TryAdd(TEntity entity)
Parameters
Type |
Name |
Description |
TEntity |
entity |
|
Returns
Type |
Description |
System.Boolean |
|
TryAdd(TEntity, Object)
Declaration
bool TryAdd(TEntity entity, object sender)
Parameters
Type |
Name |
Description |
TEntity |
entity |
|
System.Object |
sender |
|
Returns
Type |
Description |
System.Boolean |
|
TryAddAsync(TEntity, Object, CancellationToken)
Declaration
virtual Task<bool> TryAddAsync(TEntity entity, object sender, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type |
Name |
Description |
TEntity |
entity |
|
System.Object |
sender |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Boolean> |
|
TryAddAsync(TEntity, CancellationToken)
Declaration
virtual Task<bool> TryAddAsync(TEntity entity, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type |
Name |
Description |
TEntity |
entity |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Boolean> |
|
TryAddRange(TEntity[])
Declaration
void TryAddRange(params TEntity[] entities)
Parameters
Type |
Name |
Description |
TEntity[] |
entities |
|
TryAddRange(IEnumerable<TEntity>)
Declaration
void TryAddRange(IEnumerable<TEntity> entities)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<TEntity> |
entities |
|
TryAddRange(IEnumerable<TEntity>, Object)
Declaration
void TryAddRange(IEnumerable<TEntity> entities, object sender)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<TEntity> |
entities |
|
System.Object |
sender |
|
TryAddRangeAsync(TEntity[])
Declaration
virtual Task TryAddRangeAsync(params TEntity[] entities)
Parameters
Type |
Name |
Description |
TEntity[] |
entities |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
TryAddRangeAsync(IEnumerable<TEntity>, Object, CancellationToken)
Declaration
virtual Task TryAddRangeAsync(IEnumerable<TEntity> entities, object sender, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<TEntity> |
entities |
|
System.Object |
sender |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
TryAddRangeAsync(IEnumerable<TEntity>, CancellationToken)
Declaration
virtual Task TryAddRangeAsync(IEnumerable<TEntity> entities, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<TEntity> |
entities |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Update(TEntity)
Declaration
void Update(TEntity entity)
Parameters
Type |
Name |
Description |
TEntity |
entity |
|
Update(TEntity, Object)
Declaration
void Update(TEntity entity, object sender)
Parameters
Type |
Name |
Description |
TEntity |
entity |
|
System.Object |
sender |
|
UpdateRange(TEntity[])
Declaration
void UpdateRange(params TEntity[] entities)
Parameters
Type |
Name |
Description |
TEntity[] |
entities |
|
UpdateRange(IEnumerable<TEntity>)
Declaration
void UpdateRange(IEnumerable<TEntity> entities)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<TEntity> |
entities |
|
UpdateRange(IEnumerable<TEntity>, Object)
Declaration
void UpdateRange(IEnumerable<TEntity> entities, object sender)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<TEntity> |
entities |
|
System.Object |
sender |
|
Inherited Members
System.Collections.Generic.IEnumerable<TEntity>.GetEnumerator()
System.Linq.IQueryable.ElementType
System.Linq.IQueryable.Expression
System.Linq.IQueryable.Provider
Extension Methods