public Kpskv Insert(Kpskv record) { DataRow row = this.dataSet.ttblkpskv.NewttblkpskvRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblkpskv.AddttblkpskvRow((pdskpskvDataSet.ttblkpskvRow)row); this.SaveChanges(); return this.dataSet.ttblkpskv.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblkpskv.Rows[0]) : null; }
public Kpskv GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Kpskv kpskv = null; if (row != null) { kpskv = this.BuildFromRow(row); } return kpskv; }
protected Kpskv Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblkpskv.AsEnumerable().SingleOrDefault(); Kpskv kpskv = null; if (row != null) { kpskv = this.BuildFromRow(row); } return kpskv; }
public void Delete(Kpskv record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblkpskv.NewttblkpskvRow(); Kpskv.BuildMinimalRow(ref row, record); this.dataSet.ttblkpskv.AddttblkpskvRow((pdskpskvDataSet.ttblkpskvRow)row); } row.Delete(); this.SaveChanges(); }
public Kpskv Update(Kpskv 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.ttblkpskv.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblkpskv.Rows[0]) : null; } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return null; }
public void Delete(Kpskv record) { this.adapter.Delete(record); }
public Kpskv Update(Kpskv record) { return(this.adapter.Update(record)); }
public Kpskv Insert(Kpskv record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Kpskv record) { Kpskv.UpdateRowFromKpskv(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public Kpskv BuildFromRow(DataRow row) { var returnRecord = Kpskv.BuildKpskvFromRow(row); returnRecord = this.BuildExtraFromRow<Kpskv>(returnRecord, row); return returnRecord; }
public void Delete(Kpskv record) { this.repository.Delete(record); }
public Kpskv Update(Kpskv record) { return(this.repository.Update(record)); }
public Kpskv Insert(Kpskv record) { return(this.repository.Insert(record)); }