public Stgmst BuildFromRow(DataRow row) { var returnRecord = Stgmst.BuildStgmstFromRow(row); returnRecord = this.BuildExtraFromRow <Stgmst>(returnRecord, row); return(returnRecord); }
public Stgmst Insert(Stgmst record) { DataRow row = this.dataSet.ttblstgmst.NewttblstgmstRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblstgmst.AddttblstgmstRow((pdsstgmstDataSet.ttblstgmstRow)row); this.SaveChanges(); return(this.dataSet.ttblstgmst.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblstgmst.Rows[0]) : null); }
public Stgmst GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Stgmst stgmst = null; if (row != null) { stgmst = this.BuildFromRow(row); } return(stgmst); }
protected Stgmst Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblstgmst.AsEnumerable().SingleOrDefault(); Stgmst stgmst = null; if (row != null) { stgmst = this.BuildFromRow(row); } return(stgmst); }
public void Delete(Stgmst record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblstgmst.NewttblstgmstRow(); Stgmst.BuildMinimalRow(ref row, record); this.dataSet.ttblstgmst.AddttblstgmstRow((pdsstgmstDataSet.ttblstgmstRow)row); } row.Delete(); this.SaveChanges(); }
public Stgmst Update(Stgmst 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.ttblstgmst.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblstgmst.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Stgmst record) { this.adapter.Delete(record); }
public Stgmst Update(Stgmst record) { return(this.adapter.Update(record)); }
public Stgmst Insert(Stgmst record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Stgmst record) { Stgmst.UpdateRowFromStgmst(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public Stgmst Insert(Stgmst record) { return(this.repository.Insert(record)); }
public void Delete(Stgmst record) { this.repository.Delete(record); }
public Stgmst Update(Stgmst record) { return(this.repository.Update(record)); }