public UdcalcType BuildFromRow(DataRow row) { var returnRecord = UdcalcType.BuildUdcalcTypeFromRow(row); returnRecord = this.BuildExtraFromRow <UdcalcType>(returnRecord, row); return(returnRecord); }
public UdcalcType Insert(UdcalcType record) { DataRow row = this.dataSet.ttbludcalc_type.Newttbludcalc_typeRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttbludcalc_type.Addttbludcalc_typeRow((pdsudcalc_typeDataSet.ttbludcalc_typeRow)row); this.SaveChanges(); return(this.dataSet.ttbludcalc_type.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbludcalc_type.Rows[0]) : null); }
public UdcalcType GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); UdcalcType udcalcType = null; if (row != null) { udcalcType = this.BuildFromRow(row); } return(udcalcType); }
protected UdcalcType Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttbludcalc_type.AsEnumerable().SingleOrDefault(); UdcalcType udcalcType = null; if (row != null) { udcalcType = this.BuildFromRow(row); } return(udcalcType); }
public void Delete(UdcalcType record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttbludcalc_type.Newttbludcalc_typeRow(); UdcalcType.BuildMinimalRow(ref row, record); this.dataSet.ttbludcalc_type.Addttbludcalc_typeRow((pdsudcalc_typeDataSet.ttbludcalc_typeRow)row); } row.Delete(); this.SaveChanges(); }
public UdcalcType Update(UdcalcType 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.ttbludcalc_type.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbludcalc_type.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public UdcalcType Update(UdcalcType record) { return(this.repository.Update(record)); }
public UdcalcType Insert(UdcalcType record) { return(this.repository.Insert(record)); }
public void Delete(UdcalcType record) { this.repository.Delete(record); }
public void UpdateToRow(ref DataRow row, UdcalcType record) { UdcalcType.UpdateRowFromUdcalcType(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(UdcalcType record) { this.adapter.Delete(record); }
public UdcalcType Update(UdcalcType record) { return(this.adapter.Update(record)); }
public UdcalcType Insert(UdcalcType record) { return(this.adapter.Insert(record)); }