public Glss BuildFromRow(DataRow row) { var returnRecord = Glss.BuildGlssFromRow(row); returnRecord = this.BuildExtraFromRow <Glss>(returnRecord, row); return(returnRecord); }
public Glss Insert(Glss record) { DataRow row = this.dataSet.ttblglss.NewttblglssRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblglss.AddttblglssRow((pdsglssDataSet.ttblglssRow)row); this.SaveChanges(); return(this.dataSet.ttblglss.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblglss.Rows[0]) : null); }
public Glss GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Glss glss = null; if (row != null) { glss = this.BuildFromRow(row); } return(glss); }
protected Glss Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblglss.AsEnumerable().SingleOrDefault(); Glss glss = null; if (row != null) { glss = this.BuildFromRow(row); } return(glss); }
public void Delete(Glss record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblglss.NewttblglssRow(); Glss.BuildMinimalRow(ref row, record); this.dataSet.ttblglss.AddttblglssRow((pdsglssDataSet.ttblglssRow)row); } row.Delete(); this.SaveChanges(); }
public Glss Update(Glss 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.ttblglss.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblglss.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Glss record) { Glss.UpdateRowFromGlss(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Glss record) { this.adapter.Delete(record); }
public Glss Update(Glss record) { return(this.adapter.Update(record)); }
public Glss Insert(Glss record) { return(this.adapter.Insert(record)); }
public Glss Insert(Glss record) { return(this.repository.Insert(record)); }
public void Delete(Glss record) { this.repository.Delete(record); }
public Glss Update(Glss record) { return(this.repository.Update(record)); }