Example #1
0
 /// <summary>
 ///根据实体删除
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public bool Delete(T model)
 {
     return(_dapperExtension.Delete(model));
 }
Example #2
0
 public async Task <bool> Delete(Expression <Func <T, bool> > whereLambda)
 {
     return(await DapperExtensions.Delete <T>(_unitOfWork, whereLambda) > 0 ? true : false);
 }