public Sasgl BuildFromRow(DataRow row) { var returnRecord = Sasgl.BuildSasglFromRow(row); returnRecord = this.BuildExtraFromRow <Sasgl>(returnRecord, row); return(returnRecord); }
public Sasgl Insert(Sasgl record) { DataRow row = this.dataSet.ttblsasgl.NewttblsasglRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblsasgl.AddttblsasglRow((pdssasglDataSet.ttblsasglRow)row); this.SaveChanges(); return(this.dataSet.ttblsasgl.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblsasgl.Rows[0]) : null); }
public Sasgl GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Sasgl sasgl = null; if (row != null) { sasgl = this.BuildFromRow(row); } return(sasgl); }
protected Sasgl Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblsasgl.AsEnumerable().SingleOrDefault(); Sasgl sasgl = null; if (row != null) { sasgl = this.BuildFromRow(row); } return(sasgl); }
public void Delete(Sasgl record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblsasgl.NewttblsasglRow(); Sasgl.BuildMinimalRow(ref row, record); this.dataSet.ttblsasgl.AddttblsasglRow((pdssasglDataSet.ttblsasglRow)row); } row.Delete(); this.SaveChanges(); }
public Sasgl Update(Sasgl 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.ttblsasgl.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblsasgl.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Sasgl record) { Sasgl.UpdateRowFromSasgl(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public Sasgl Insert(Sasgl record) { return(this.repository.Insert(record)); }
public void Delete(Sasgl record) { this.repository.Delete(record); }
public Sasgl Update(Sasgl record) { return(this.repository.Update(record)); }
public void Delete(Sasgl record) { this.adapter.Delete(record); }
public Sasgl Update(Sasgl record) { return(this.adapter.Update(record)); }
public Sasgl Insert(Sasgl record) { return(this.adapter.Insert(record)); }