public Kpsm BuildFromRow(DataRow row) { var returnRecord = Kpsm.BuildKpsmFromRow(row); returnRecord = this.BuildExtraFromRow <Kpsm>(returnRecord, row); return(returnRecord); }
public Kpsm Insert(Kpsm record) { DataRow row = this.dataSet.ttblkpsm.NewttblkpsmRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblkpsm.AddttblkpsmRow((pdskpsmDataSet.ttblkpsmRow)row); this.SaveChanges(); return(this.dataSet.ttblkpsm.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblkpsm.Rows[0]) : null); }
public Kpsm GetByRowId(string rowId, bool fillMode, string fldList) { var row = this.GetRowByRowId(rowId, fillMode, fldList); Kpsm kpsm = null; if (row != null) { kpsm = this.BuildFromRow(row); } return(kpsm); }
protected Kpsm Fetch(string where, bool fillMode, int batchsize, string fldList) { this.FetchWhere(where, fillMode, batchsize, fldList); var row = this.dataSet.ttblkpsm.AsEnumerable().SingleOrDefault(); Kpsm kpsm = null; if (row != null) { kpsm = this.BuildFromRow(row); } return(kpsm); }
public void Delete(Kpsm record) { var row = this.GetRowByRowId(record.rowID, false, string.Empty); if (row == null) { row = this.dataSet.ttblkpsm.NewttblkpsmRow(); Kpsm.BuildMinimalRow(ref row, record); this.dataSet.ttblkpsm.AddttblkpsmRow((pdskpsmDataSet.ttblkpsmRow)row); } row.Delete(); this.SaveChanges(); }
public Kpsm Update(Kpsm record) { var row = this.GetRowByRowId(record.rowID, false, string.Empty); if (row != null) { this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.SaveChanges(); return(this.dataSet.ttblkpsm.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblkpsm.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Kpsm record) { this.adapter.Delete(record); }
public Kpsm Update(Kpsm record) { return(this.adapter.Update(record)); }
public Kpsm Insert(Kpsm record) { return(this.adapter.Insert(record)); }
public void Delete(Kpsm record) { this.repository.Delete(record); }
public Kpsm Update(Kpsm record) { return(this.repository.Update(record)); }
public Kpsm Insert(Kpsm record) { return(this.repository.Insert(record)); }
public void UpdateToRow(ref DataRow row, Kpsm record) { Kpsm.UpdateRowFromKpsm(ref row, record); this.ExtraUpdateToRow(ref row, record); }