public Arett BuildFromRow(DataRow row) { var returnRecord = Arett.BuildArettFromRow(row); returnRecord = this.BuildExtraFromRow <Arett>(returnRecord, row); return(returnRecord); }
public Arett Insert(Arett record) { DataRow row = this.dataSet.ttblarett.NewttblarettRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblarett.AddttblarettRow((pdsarettDataSet.ttblarettRow)row); this.SaveChanges(); return(this.dataSet.ttblarett.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblarett.Rows[0]) : null); }
public Arett GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Arett arett = null; if (row != null) { arett = this.BuildFromRow(row); } return(arett); }
protected Arett Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblarett.AsEnumerable().SingleOrDefault(); Arett arett = null; if (row != null) { arett = this.BuildFromRow(row); } return(arett); }
public void Delete(Arett record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblarett.NewttblarettRow(); Arett.BuildMinimalRow(ref row, record); this.dataSet.ttblarett.AddttblarettRow((pdsarettDataSet.ttblarettRow)row); } row.Delete(); this.SaveChanges(); }
public Arett Update(Arett 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.ttblarett.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblarett.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Arett record) { this.repository.Delete(record); }
public Arett Update(Arett record) { return(this.repository.Update(record)); }
public Arett Insert(Arett record) { return(this.repository.Insert(record)); }
public void Delete(Arett record) { this.adapter.Delete(record); }
public Arett Update(Arett record) { return(this.adapter.Update(record)); }
public Arett Insert(Arett record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Arett record) { Arett.UpdateRowFromArett(ref row, record); this.ExtraUpdateToRow(ref row, record); }