public Edia BuildFromRow(DataRow row) { var returnRecord = Edia.BuildEdiaFromRow(row); returnRecord = this.BuildExtraFromRow <Edia>(returnRecord, row); return(returnRecord); }
public Edia Insert(Edia record) { DataRow row = this.dataSet.ttbledia.NewttblediaRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttbledia.AddttblediaRow((pdsediaDataSet.ttblediaRow)row); this.SaveChanges(); return(this.dataSet.ttbledia.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbledia.Rows[0]) : null); }
public Edia GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Edia edia = null; if (row != null) { edia = this.BuildFromRow(row); } return(edia); }
protected Edia Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttbledia.AsEnumerable().SingleOrDefault(); Edia edia = null; if (row != null) { edia = this.BuildFromRow(row); } return(edia); }
public void Delete(Edia record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttbledia.NewttblediaRow(); Edia.BuildMinimalRow(ref row, record); this.dataSet.ttbledia.AddttblediaRow((pdsediaDataSet.ttblediaRow)row); } row.Delete(); this.SaveChanges(); }
public Edia Update(Edia 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.ttbledia.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbledia.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Edia record) { this.adapter.Delete(record); }
public Edia Update(Edia record) { return(this.adapter.Update(record)); }
public Edia Insert(Edia record) { return(this.adapter.Insert(record)); }
public void Delete(Edia record) { this.repository.Delete(record); }
public Edia Update(Edia record) { return(this.repository.Update(record)); }
public Edia Insert(Edia record) { return(this.repository.Insert(record)); }
public void UpdateToRow(ref DataRow row, Edia record) { Edia.UpdateRowFromEdia(ref row, record); this.ExtraUpdateToRow(ref row, record); }