public Otevl BuildFromRow(DataRow row) { var returnRecord = Otevl.BuildOtevlFromRow(row); returnRecord = this.BuildExtraFromRow <Otevl>(returnRecord, row); return(returnRecord); }
public Otevl Insert(Otevl record) { DataRow row = this.dataSet.ttblotevl.NewttblotevlRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblotevl.AddttblotevlRow((pdsotevlDataSet.ttblotevlRow)row); this.SaveChanges(); return(this.dataSet.ttblotevl.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblotevl.Rows[0]) : null); }
public Otevl GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Otevl otevl = null; if (row != null) { otevl = this.BuildFromRow(row); } return(otevl); }
protected Otevl Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblotevl.AsEnumerable().SingleOrDefault(); Otevl otevl = null; if (row != null) { otevl = this.BuildFromRow(row); } return(otevl); }
public void Delete(Otevl record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblotevl.NewttblotevlRow(); Otevl.BuildMinimalRow(ref row, record); this.dataSet.ttblotevl.AddttblotevlRow((pdsotevlDataSet.ttblotevlRow)row); } row.Delete(); this.SaveChanges(); }
public Otevl Update(Otevl 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.ttblotevl.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblotevl.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Otevl record) { Otevl.UpdateRowFromOtevl(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Otevl record) { this.repository.Delete(record); }
public Otevl Update(Otevl record) { return(this.repository.Update(record)); }
public Otevl Insert(Otevl record) { return(this.repository.Insert(record)); }
public void Delete(Otevl record) { this.adapter.Delete(record); }
public Otevl Update(Otevl record) { return(this.adapter.Update(record)); }
public Otevl Insert(Otevl record) { return(this.adapter.Insert(record)); }