protected OrdhdrStatus Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblordhdr_status.AsEnumerable().SingleOrDefault(); OrdhdrStatus ordhdrStatus = null; if (row != null) { ordhdrStatus = this.BuildFromRow(row); } return(ordhdrStatus); }
public void Delete(OrdhdrStatus record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblordhdr_status.Newttblordhdr_statusRow(); OrdhdrStatus.BuildMinimalRow(ref row, record); this.dataSet.ttblordhdr_status.Addttblordhdr_statusRow((pdsordhdr_statusDataSet.ttblordhdr_statusRow)row); } row.Delete(); this.SaveChanges(); }
public OrdhdrStatus Update(OrdhdrStatus record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row != null) { this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.SaveChanges(); return(this.dataSet.ttblordhdr_status.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblordhdr_status.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(OrdhdrStatus record) { this.adapter.Delete(record); }
public OrdhdrStatus Update(OrdhdrStatus record) { return(this.adapter.Update(record)); }
public OrdhdrStatus Insert(OrdhdrStatus record) { return(this.adapter.Insert(record)); }
public void Delete(OrdhdrStatus record) { this.repository.Delete(record); }
public OrdhdrStatus Update(OrdhdrStatus record) { return(this.repository.Update(record)); }
public OrdhdrStatus Insert(OrdhdrStatus record) { return(this.repository.Insert(record)); }
public void UpdateToRow(ref DataRow row, OrdhdrStatus record) { OrdhdrStatus.UpdateRowFromOrdhdrStatus(ref row, record); this.ExtraUpdateToRow(ref row, record); }