public Edil BuildFromRow(DataRow row) { var returnRecord = Edil.BuildEdilFromRow(row); returnRecord = this.BuildExtraFromRow <Edil>(returnRecord, row); return(returnRecord); }
public Edil Insert(Edil record) { DataRow row = this.dataSet.ttbledil.NewttbledilRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttbledil.AddttbledilRow((pdsedilDataSet.ttbledilRow)row); this.SaveChanges(); return(this.dataSet.ttbledil.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbledil.Rows[0]) : null); }
public Edil GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Edil edil = null; if (row != null) { edil = this.BuildFromRow(row); } return(edil); }
protected Edil Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttbledil.AsEnumerable().SingleOrDefault(); Edil edil = null; if (row != null) { edil = this.BuildFromRow(row); } return(edil); }
public void Delete(Edil record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttbledil.NewttbledilRow(); Edil.BuildMinimalRow(ref row, record); this.dataSet.ttbledil.AddttbledilRow((pdsedilDataSet.ttbledilRow)row); } row.Delete(); this.SaveChanges(); }
public Edil Update(Edil 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.ttbledil.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbledil.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public Edil Insert(Edil record) { return(this.repository.Insert(record)); }
public void Delete(Edil record) { this.repository.Delete(record); }
public Edil Update(Edil record) { return(this.repository.Update(record)); }
public void Delete(Edil record) { this.adapter.Delete(record); }
public Edil Update(Edil record) { return(this.adapter.Update(record)); }
public Edil Insert(Edil record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Edil record) { Edil.UpdateRowFromEdil(ref row, record); this.ExtraUpdateToRow(ref row, record); }