public OrddtlStatus BuildFromRow(DataRow row) { var returnRecord = OrddtlStatus.BuildOrddtlStatusFromRow(row); returnRecord = this.BuildExtraFromRow <OrddtlStatus>(returnRecord, row); return(returnRecord); }
public OrddtlStatus Insert(OrddtlStatus record) { DataRow row = this.dataSet.ttblorddtl_status.Newttblorddtl_statusRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblorddtl_status.Addttblorddtl_statusRow((pdsorddtl_statusDataSet.ttblorddtl_statusRow)row); this.SaveChanges(); return(this.dataSet.ttblorddtl_status.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblorddtl_status.Rows[0]) : null); }
public OrddtlStatus GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); OrddtlStatus orddtlStatus = null; if (row != null) { orddtlStatus = this.BuildFromRow(row); } return(orddtlStatus); }
protected OrddtlStatus Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblorddtl_status.AsEnumerable().SingleOrDefault(); OrddtlStatus orddtlStatus = null; if (row != null) { orddtlStatus = this.BuildFromRow(row); } return(orddtlStatus); }
public void Delete(OrddtlStatus record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblorddtl_status.Newttblorddtl_statusRow(); OrddtlStatus.BuildMinimalRow(ref row, record); this.dataSet.ttblorddtl_status.Addttblorddtl_statusRow((pdsorddtl_statusDataSet.ttblorddtl_statusRow)row); } row.Delete(); this.SaveChanges(); }
public OrddtlStatus Update(OrddtlStatus 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.ttblorddtl_status.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblorddtl_status.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(OrddtlStatus record) { this.repository.Delete(record); }
public OrddtlStatus Update(OrddtlStatus record) { return(this.repository.Update(record)); }
public OrddtlStatus Insert(OrddtlStatus record) { return(this.repository.Insert(record)); }
public void Delete(OrddtlStatus record) { this.adapter.Delete(record); }
public OrddtlStatus Update(OrddtlStatus record) { return(this.adapter.Update(record)); }
public OrddtlStatus Insert(OrddtlStatus record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, OrddtlStatus record) { OrddtlStatus.UpdateRowFromOrddtlStatus(ref row, record); this.ExtraUpdateToRow(ref row, record); }