public Otepl BuildFromRow(DataRow row) { var returnRecord = Otepl.BuildOteplFromRow(row); returnRecord = this.BuildExtraFromRow <Otepl>(returnRecord, row); return(returnRecord); }
public Otepl Insert(Otepl record) { DataRow row = this.dataSet.ttblotepl.NewttbloteplRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblotepl.AddttbloteplRow((pdsoteplDataSet.ttbloteplRow)row); this.SaveChanges(); return(this.dataSet.ttblotepl.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblotepl.Rows[0]) : null); }
public Otepl GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Otepl otepl = null; if (row != null) { otepl = this.BuildFromRow(row); } return(otepl); }
protected Otepl Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblotepl.AsEnumerable().SingleOrDefault(); Otepl otepl = null; if (row != null) { otepl = this.BuildFromRow(row); } return(otepl); }
public void Delete(Otepl record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblotepl.NewttbloteplRow(); Otepl.BuildMinimalRow(ref row, record); this.dataSet.ttblotepl.AddttbloteplRow((pdsoteplDataSet.ttbloteplRow)row); } row.Delete(); this.SaveChanges(); }
public Otepl Update(Otepl 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.ttblotepl.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblotepl.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Otepl record) { this.adapter.Delete(record); }
public Otepl Update(Otepl record) { return(this.adapter.Update(record)); }
public Otepl Insert(Otepl record) { return(this.adapter.Insert(record)); }
public void Delete(Otepl record) { this.repository.Delete(record); }
public Otepl Update(Otepl record) { return(this.repository.Update(record)); }
public Otepl Insert(Otepl record) { return(this.repository.Insert(record)); }
public void UpdateToRow(ref DataRow row, Otepl record) { Otepl.UpdateRowFromOtepl(ref row, record); this.ExtraUpdateToRow(ref row, record); }