Table of Contents

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
Derived
Inherited Members
Extension Methods

Constructors

Repository()

public Repository()

Methods

Add(T)

public virtual bool Add(T t)

Parameters

t T

Returns

bool

Delete(params T[])

public virtual bool Delete(params T[] ts)

Parameters

ts T[]

Returns

bool

DeleteAll(Predicate<T>)

public virtual bool DeleteAll(Predicate<T> predicate = null)

Parameters

predicate Predicate<T>

Returns

bool

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

Returns

bool