public UdcfgType BuildFromRow(DataRow row) { var returnRecord = UdcfgType.BuildUdcfgTypeFromRow(row); returnRecord = this.BuildExtraFromRow <UdcfgType>(returnRecord, row); return(returnRecord); }
public UdcfgType Insert(UdcfgType record) { DataRow row = this.dataSet.ttbludcfg_type.Newttbludcfg_typeRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttbludcfg_type.Addttbludcfg_typeRow((pdsudcfg_typeDataSet.ttbludcfg_typeRow)row); this.SaveChanges(); return(this.dataSet.ttbludcfg_type.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbludcfg_type.Rows[0]) : null); }
public UdcfgType GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); UdcfgType udcfgType = null; if (row != null) { udcfgType = this.BuildFromRow(row); } return(udcfgType); }
protected UdcfgType Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttbludcfg_type.AsEnumerable().SingleOrDefault(); UdcfgType udcfgType = null; if (row != null) { udcfgType = this.BuildFromRow(row); } return(udcfgType); }
public void Delete(UdcfgType record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttbludcfg_type.Newttbludcfg_typeRow(); UdcfgType.BuildMinimalRow(ref row, record); this.dataSet.ttbludcfg_type.Addttbludcfg_typeRow((pdsudcfg_typeDataSet.ttbludcfg_typeRow)row); } row.Delete(); this.SaveChanges(); }
public UdcfgType Update(UdcfgType 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.ttbludcfg_type.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbludcfg_type.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public UdcfgType Update(UdcfgType record) { return(this.repository.Update(record)); }
public UdcfgType Insert(UdcfgType record) { return(this.repository.Insert(record)); }
public void Delete(UdcfgType record) { this.repository.Delete(record); }
public void Delete(UdcfgType record) { this.adapter.Delete(record); }
public UdcfgType Update(UdcfgType record) { return(this.adapter.Update(record)); }
public UdcfgType Insert(UdcfgType record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, UdcfgType record) { UdcfgType.UpdateRowFromUdcfgType(ref row, record); this.ExtraUpdateToRow(ref row, record); }