public UdCfg BuildFromRow(DataRow row) { var returnRecord = UdCfg.BuildUdCfgFromRow(row); returnRecord = this.BuildExtraFromRow <UdCfg>(returnRecord, row); return(returnRecord); }
public UdCfg Insert(UdCfg record) { DataRow row = this.dataSet.ttblud_cfg.Newttblud_cfgRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblud_cfg.Addttblud_cfgRow((pdsud_cfgDataSet.ttblud_cfgRow)row); this.SaveChanges(); return(this.dataSet.ttblud_cfg.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblud_cfg.Rows[0]) : null); }
public UdCfg GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); UdCfg udCfg = null; if (row != null) { udCfg = this.BuildFromRow(row); } return(udCfg); }
protected UdCfg Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblud_cfg.AsEnumerable().SingleOrDefault(); UdCfg udCfg = null; if (row != null) { udCfg = this.BuildFromRow(row); } return(udCfg); }
public void Delete(UdCfg record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblud_cfg.Newttblud_cfgRow(); UdCfg.BuildMinimalRow(ref row, record); this.dataSet.ttblud_cfg.Addttblud_cfgRow((pdsud_cfgDataSet.ttblud_cfgRow)row); } row.Delete(); this.SaveChanges(); }
public UdCfg Update(UdCfg 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_cfg.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblud_cfg.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(UdCfg record) { this.adapter.Delete(record); }
public UdCfg Update(UdCfg record) { return(this.adapter.Update(record)); }
public UdCfg Insert(UdCfg record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, UdCfg record) { UdCfg.UpdateRowFromUdCfg(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public UdCfg Insert(UdCfg record) { return(this.repository.Insert(record)); }
public void Delete(UdCfg record) { this.repository.Delete(record); }
public UdCfg Update(UdCfg record) { return(this.repository.Update(record)); }