示例#1
0
 /// <summary>
 /// 删除
 /// </summary>
 /// <param name="instance"></param>
 /// <returns></returns>
 public static int Delete(object instance)
 {
     return(InnerRepository.Delete(instance));
 }
示例#2
0
 /// <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));
 }
示例#3
0
 /// <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);
 }