public Edss BuildFromRow(DataRow row) { var returnRecord = Edss.BuildEdssFromRow(row); returnRecord = this.BuildExtraFromRow <Edss>(returnRecord, row); return(returnRecord); }
public Edss Insert(Edss record) { DataRow row = this.dataSet.ttbledss.NewttbledssRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttbledss.AddttbledssRow((pdsedssDataSet.ttbledssRow)row); this.SaveChanges(); return(this.dataSet.ttbledss.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbledss.Rows[0]) : null); }
public Edss GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Edss edss = null; if (row != null) { edss = this.BuildFromRow(row); } return(edss); }
protected Edss Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttbledss.AsEnumerable().SingleOrDefault(); Edss edss = null; if (row != null) { edss = this.BuildFromRow(row); } return(edss); }
public void Delete(Edss record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttbledss.NewttbledssRow(); Edss.BuildMinimalRow(ref row, record); this.dataSet.ttbledss.AddttbledssRow((pdsedssDataSet.ttbledssRow)row); } row.Delete(); this.SaveChanges(); }
public Edss Update(Edss 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.ttbledss.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbledss.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Edss record) { this.adapter.Delete(record); }
public Edss Update(Edss record) { return(this.adapter.Update(record)); }
public Edss Insert(Edss record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Edss record) { Edss.UpdateRowFromEdss(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public Edss Update(Edss record) { return(this.repository.Update(record)); }
public Edss Insert(Edss record) { return(this.repository.Insert(record)); }
public void Delete(Edss record) { this.repository.Delete(record); }