public int DeleteByProperty(BaseEntity model) { int ret = 0; string sql = SQLBuilderHelper.GetDeleteSqlByChangeProperty(model, this.GetORMDBType()); ret = Excute(sql, model); return(ret); }
public async Task <int> DeleteByPropertyAsync(BaseEntity model) { int ret = 0; string sql = SQLBuilderHelper.GetDeleteSqlByChangeProperty(model, this.GetORMDBType()); ret = await ExcuteAsync(sql, model); return(ret); }