/// <summary> /// 删除 /// </summary> /// <param name="instance"></param> /// <returns></returns> public static int Delete(object instance) { return(InnerRepository.Delete(instance)); }
/// <summary> /// 删除 /// </summary> /// <typeparam name="T"></typeparam> /// <param name="instance"></param> /// <param name="deleteCheck">除了id条件之外的附加条件</param> /// <returns></returns> public static int Delete(object instance, Expression <Func <T, bool> > deleteCheck) { return(InnerRepository.Delete(instance, deleteCheck)); }
/// <summary> /// 删除 /// </summary> /// <typeparam name="T"></typeparam> /// <param name="predicate"></param> /// <returns></returns> public static int Delete(Expression <Func <T, bool> > predicate) { return(InnerRepository.Delete(predicate)); }
public override void Delete(T entity) { InnerRepository.Delete(entity); }