Table of Contents

Interface IRepository<T>

Namespace
HeBianGu.Systems.Repository
Assembly
HeBianGu.Systems.Repository.dll
public interface IRepository<T> : IRepository

Type Parameters

T
Extension Methods

Methods

Add(T)

bool Add(T t)

Parameters

t T

Returns

bool

Delete(params T[])

bool Delete(params T[] ts)

Parameters

ts T[]

Returns

bool

DeleteAll(Predicate<T>)

bool DeleteAll(Predicate<T> predicate = null)

Parameters

predicate Predicate<T>

Returns

bool

GetAll(Predicate<T>)

IEnumerable<T> GetAll(Predicate<T> predicate = null)

Parameters

predicate Predicate<T>

Returns

IEnumerable<T>

Save(T)

bool Save(T t)

Parameters

t T

Returns

bool