public Glsfm BuildFromRow(DataRow row) { var returnRecord = Glsfm.BuildGlsfmFromRow(row); returnRecord = this.BuildExtraFromRow <Glsfm>(returnRecord, row); return(returnRecord); }
public Glsfm Insert(Glsfm record) { DataRow row = this.dataSet.ttblglsfm.NewttblglsfmRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblglsfm.AddttblglsfmRow((pdsglsfmDataSet.ttblglsfmRow)row); this.SaveChanges(); return(this.dataSet.ttblglsfm.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblglsfm.Rows[0]) : null); }
public Glsfm GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Glsfm glsfm = null; if (row != null) { glsfm = this.BuildFromRow(row); } return(glsfm); }
protected Glsfm Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblglsfm.AsEnumerable().SingleOrDefault(); Glsfm glsfm = null; if (row != null) { glsfm = this.BuildFromRow(row); } return(glsfm); }
public void Delete(Glsfm record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblglsfm.NewttblglsfmRow(); Glsfm.BuildMinimalRow(ref row, record); this.dataSet.ttblglsfm.AddttblglsfmRow((pdsglsfmDataSet.ttblglsfmRow)row); } row.Delete(); this.SaveChanges(); }
public Glsfm Update(Glsfm 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.ttblglsfm.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblglsfm.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public Glsfm Update(Glsfm record) { return(this.repository.Update(record)); }
public Glsfm Insert(Glsfm record) { return(this.repository.Insert(record)); }
public void Delete(Glsfm record) { this.repository.Delete(record); }
public void Delete(Glsfm record) { this.adapter.Delete(record); }
public Glsfm Update(Glsfm record) { return(this.adapter.Update(record)); }
public Glsfm Insert(Glsfm record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Glsfm record) { Glsfm.UpdateRowFromGlsfm(ref row, record); this.ExtraUpdateToRow(ref row, record); }