protected Oemem Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttbloemem.AsEnumerable().SingleOrDefault(); Oemem oemem = null; if (row != null) { oemem = this.BuildFromRow(row); } return(oemem); }
public void Delete(Oemem record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttbloemem.NewttbloememRow(); Oemem.BuildMinimalRow(ref row, record); this.dataSet.ttbloemem.AddttbloememRow((pdsoememDataSet.ttbloememRow)row); } row.Delete(); this.SaveChanges(); }
public Oemem Update(Oemem 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.ttbloemem.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbloemem.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Oemem record) { this.adapter.Delete(record); }
public Oemem Update(Oemem record) { return(this.adapter.Update(record)); }
public Oemem Insert(Oemem record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Oemem record) { Oemem.UpdateRowFromOemem(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public Oemem Insert(Oemem record) { return(this.repository.Insert(record)); }
public void Delete(Oemem record) { this.repository.Delete(record); }
public Oemem Update(Oemem record) { return(this.repository.Update(record)); }