Class Repository<T>
- Namespace
- HeBianGu.Systems.Repository
- Assembly
- HeBianGu.Systems.Repository.dll
public class Repository<T> : IRepository<T>, IRepository where T : class, new()
Type Parameters
T
- Inheritance
-
Repository<T>
- Implements
-
IRepository<T>
- Derived
- Inherited Members
- Extension Methods
Constructors
Repository()
public Repository()
Methods
Add(T)
public virtual bool Add(T t)
Parameters
t
T
Returns
Delete(params T[])
public virtual bool Delete(params T[] ts)
Parameters
ts
T[]
Returns
DeleteAll(Predicate<T>)
public virtual bool DeleteAll(Predicate<T> predicate = null)
Parameters
predicate
Predicate<T>
Returns
GetAll(Predicate<T>)
public virtual IEnumerable<T> GetAll(Predicate<T> predicate = null)
Parameters
predicate
Predicate<T>
Returns
- IEnumerable<T>
Save(T)
public virtual bool Save(T t)
Parameters
t
T