public bool Delete(Expression <Func <T, bool> > where = null) { if (where != null) { sql.Delete(where); } else { sql.Delete(); } int count = this.Execute(); return(count > 0 ? true : false); }
public bool Delete(Expression <Func <T, bool> > where = null) { if (where != null) { sql.Delete(where); } else { sql.Delete(); } int count = this.Execute(); return(count > 0 ? true : false); }