public Glsa BuildFromRow(DataRow row) { var returnRecord = Glsa.BuildGlsaFromRow(row); returnRecord = this.BuildExtraFromRow <Glsa>(returnRecord, row); return(returnRecord); }
public Glsa Insert(Glsa record) { DataRow row = this.dataSet.ttblglsa.NewttblglsaRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblglsa.AddttblglsaRow((pdsglsaDataSet.ttblglsaRow)row); this.SaveChanges(); return(this.dataSet.ttblglsa.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblglsa.Rows[0]) : null); }
public Glsa GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Glsa glsa = null; if (row != null) { glsa = this.BuildFromRow(row); } return(glsa); }
protected Glsa Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblglsa.AsEnumerable().SingleOrDefault(); Glsa glsa = null; if (row != null) { glsa = this.BuildFromRow(row); } return(glsa); }
private void DeleteUseRowID(Glsa record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblglsa.NewttblglsaRow(); Glsa.BuildMinimalRow(ref row, record); this.dataSet.ttblglsa.AddttblglsaRow((pdsglsaDataSet.ttblglsaRow)row); } row.Delete(); this.SaveChanges(); }
public Glsa Update(Glsa record) { var row = this.GetRowByRowpointer(record.rowpointer, string.Empty); if (row != null) { this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.SaveChanges(); return(this.dataSet.ttblglsa.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblglsa.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Glsa record) { this.adapter.Delete(record); }
public Glsa Update(Glsa record) { return(this.adapter.Update(record)); }
public Glsa Insert(Glsa record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Glsa record) { Glsa.UpdateRowFromGlsa(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Glsa record) { this.repository.Delete(record); }
public Glsa Update(Glsa record) { return(this.repository.Update(record)); }
public Glsa Insert(Glsa record) { return(this.repository.Insert(record)); }