public UdCalc BuildFromRow(DataRow row) { var returnRecord = UdCalc.BuildUdCalcFromRow(row); returnRecord = this.BuildExtraFromRow <UdCalc>(returnRecord, row); return(returnRecord); }
public UdCalc Insert(UdCalc record) { DataRow row = this.dataSet.ttblud_calc.Newttblud_calcRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblud_calc.Addttblud_calcRow((pdsud_calcDataSet.ttblud_calcRow)row); this.SaveChanges(); return(this.dataSet.ttblud_calc.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblud_calc.Rows[0]) : null); }
public UdCalc GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); UdCalc udCalc = null; if (row != null) { udCalc = this.BuildFromRow(row); } return(udCalc); }
protected UdCalc Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblud_calc.AsEnumerable().SingleOrDefault(); UdCalc udCalc = null; if (row != null) { udCalc = this.BuildFromRow(row); } return(udCalc); }
public void Delete(UdCalc record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblud_calc.Newttblud_calcRow(); UdCalc.BuildMinimalRow(ref row, record); this.dataSet.ttblud_calc.Addttblud_calcRow((pdsud_calcDataSet.ttblud_calcRow)row); } row.Delete(); this.SaveChanges(); }
public UdCalc Update(UdCalc 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.ttblud_calc.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblud_calc.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public UdCalc Update(UdCalc record) { return(this.repository.Update(record)); }
public UdCalc Insert(UdCalc record) { return(this.repository.Insert(record)); }
public void Delete(UdCalc record) { this.repository.Delete(record); }
public void UpdateToRow(ref DataRow row, UdCalc record) { UdCalc.UpdateRowFromUdCalc(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(UdCalc record) { this.adapter.Delete(record); }
public UdCalc Update(UdCalc record) { return(this.adapter.Update(record)); }
public UdCalc Insert(UdCalc record) { return(this.adapter.Insert(record)); }