public Kpet BuildFromRow(DataRow row) { var returnRecord = Kpet.BuildKpetFromRow(row); returnRecord = this.BuildExtraFromRow <Kpet>(returnRecord, row); return(returnRecord); }
public Kpet Insert(Kpet record) { DataRow row = this.dataSet.ttblkpet.NewttblkpetRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblkpet.AddttblkpetRow((pdskpetDataSet.ttblkpetRow)row); this.SaveChanges(); return(this.dataSet.ttblkpet.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblkpet.Rows[0]) : null); }
public Kpet GetByRowId(string rowId, bool fillMode, string fldList) { var row = this.GetRowByRowId(rowId, fillMode, fldList); Kpet kpet = null; if (row != null) { kpet = this.BuildFromRow(row); } return(kpet); }
protected Kpet Fetch(string where, bool fillMode, int batchsize, string fldList) { this.FetchWhere(where, fillMode, batchsize, fldList); var row = this.dataSet.ttblkpet.AsEnumerable().SingleOrDefault(); Kpet kpet = null; if (row != null) { kpet = this.BuildFromRow(row); } return(kpet); }
private void DeleteUseRowID(Kpet record) { var row = this.GetRowByRowId(record.rowID, false, string.Empty); if (row == null) { row = this.dataSet.ttblkpet.NewttblkpetRow(); Kpet.BuildMinimalRow(ref row, record); this.dataSet.ttblkpet.AddttblkpetRow((pdskpetDataSet.ttblkpetRow)row); } row.Delete(); this.SaveChanges(); }
public Kpet Update(Kpet record) { var row = this.GetRowByRowpointer(record.rowpointer, false, string.Empty); if (row != null) { this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.SaveChanges(); return(this.dataSet.ttblkpet.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblkpet.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Kpet record) { this.repository.Delete(record); }
public Kpet Update(Kpet record) { return(this.repository.Update(record)); }
public Kpet Insert(Kpet record) { return(this.repository.Insert(record)); }
public void UpdateToRow(ref DataRow row, Kpet record) { Kpet.UpdateRowFromKpet(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Kpet record) { this.adapter.Delete(record); }
public Kpet Update(Kpet record) { return(this.adapter.Update(record)); }
public Kpet Insert(Kpet record) { return(this.adapter.Insert(record)); }