public Bisms BuildFromRow(DataRow row) { var returnRecord = Bisms.BuildBismsFromRow(row); returnRecord = this.BuildExtraFromRow <Bisms>(returnRecord, row); return(returnRecord); }
public Bisms Insert(Bisms record) { DataRow row = this.dataSet.ttblbisms.NewttblbismsRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblbisms.AddttblbismsRow((pdsbismsDataSet.ttblbismsRow)row); this.SaveChanges(); return(this.dataSet.ttblbisms.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblbisms.Rows[0]) : null); }
public Bisms GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Bisms bisms = null; if (row != null) { bisms = this.BuildFromRow(row); } return(bisms); }
protected Bisms Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblbisms.AsEnumerable().SingleOrDefault(); Bisms bisms = null; if (row != null) { bisms = this.BuildFromRow(row); } return(bisms); }
public void Delete(Bisms record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblbisms.NewttblbismsRow(); Bisms.BuildMinimalRow(ref row, record); this.dataSet.ttblbisms.AddttblbismsRow((pdsbismsDataSet.ttblbismsRow)row); } row.Delete(); this.SaveChanges(); }
public Bisms Update(Bisms 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.ttblbisms.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblbisms.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Bisms record) { Bisms.UpdateRowFromBisms(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Bisms record) { this.repository.Delete(record); }
public Bisms Update(Bisms record) { return(this.repository.Update(record)); }
public Bisms Insert(Bisms record) { return(this.repository.Insert(record)); }
public void Delete(Bisms record) { this.adapter.Delete(record); }
public Bisms Update(Bisms record) { return(this.adapter.Update(record)); }
public Bisms Insert(Bisms record) { return(this.adapter.Insert(record)); }