public Swsso BuildFromRow(DataRow row) { var returnRecord = Swsso.BuildSwssoFromRow(row); returnRecord = this.BuildExtraFromRow <Swsso>(returnRecord, row); return(returnRecord); }
public Swsso Insert(Swsso record) { DataRow row = this.dataSet.ttblswsso.NewttblswssoRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblswsso.AddttblswssoRow((pdsswssoDataSet.ttblswssoRow)row); this.SaveChanges(); return(this.dataSet.ttblswsso.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblswsso.Rows[0]) : null); }
public Swsso GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Swsso swsso = null; if (row != null) { swsso = this.BuildFromRow(row); } return(swsso); }
protected Swsso Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblswsso.AsEnumerable().SingleOrDefault(); Swsso swsso = null; if (row != null) { swsso = this.BuildFromRow(row); } return(swsso); }
public void Delete(Swsso record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblswsso.NewttblswssoRow(); Swsso.BuildMinimalRow(ref row, record); this.dataSet.ttblswsso.AddttblswssoRow((pdsswssoDataSet.ttblswssoRow)row); } row.Delete(); this.SaveChanges(); }
public Swsso Update(Swsso 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.ttblswsso.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblswsso.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Swsso record) { this.repository.Delete(record); }
public Swsso Update(Swsso record) { return(this.repository.Update(record)); }
public Swsso Insert(Swsso record) { return(this.repository.Insert(record)); }
public void Delete(Swsso record) { this.adapter.Delete(record); }
public Swsso Update(Swsso record) { return(this.adapter.Update(record)); }
public Swsso Insert(Swsso record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Swsso record) { Swsso.UpdateRowFromSwsso(ref row, record); this.ExtraUpdateToRow(ref row, record); }