public Gleba BuildFromRow(DataRow row) { var returnRecord = Gleba.BuildGlebaFromRow(row); returnRecord = this.BuildExtraFromRow <Gleba>(returnRecord, row); return(returnRecord); }
public Gleba Insert(Gleba record) { DataRow row = this.dataSet.ttblgleba.NewttblglebaRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblgleba.AddttblglebaRow((pdsglebaDataSet.ttblglebaRow)row); this.SaveChanges(); return(this.dataSet.ttblgleba.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblgleba.Rows[0]) : null); }
public Gleba GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Gleba gleba = null; if (row != null) { gleba = this.BuildFromRow(row); } return(gleba); }
protected Gleba Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblgleba.AsEnumerable().SingleOrDefault(); Gleba gleba = null; if (row != null) { gleba = this.BuildFromRow(row); } return(gleba); }
public void Delete(Gleba record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblgleba.NewttblglebaRow(); Gleba.BuildMinimalRow(ref row, record); this.dataSet.ttblgleba.AddttblglebaRow((pdsglebaDataSet.ttblglebaRow)row); } row.Delete(); this.SaveChanges(); }
public Gleba Update(Gleba 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.ttblgleba.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblgleba.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Gleba record) { Gleba.UpdateRowFromGleba(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Gleba record) { this.adapter.Delete(record); }
public Gleba Update(Gleba record) { return(this.adapter.Update(record)); }
public Gleba Insert(Gleba record) { return(this.adapter.Insert(record)); }
public Gleba Insert(Gleba record) { return(this.repository.Insert(record)); }
public void Delete(Gleba record) { this.repository.Delete(record); }
public Gleba Update(Gleba record) { return(this.repository.Update(record)); }