public Swsmsn BuildFromRow(DataRow row) { var returnRecord = Swsmsn.BuildSwsmsnFromRow(row); returnRecord = this.BuildExtraFromRow <Swsmsn>(returnRecord, row); return(returnRecord); }
public Swsmsn Insert(Swsmsn record) { DataRow row = this.dataSet.ttblswsmsn.NewttblswsmsnRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblswsmsn.AddttblswsmsnRow((pdsswsmsnDataSet.ttblswsmsnRow)row); this.SaveChanges(); return(this.dataSet.ttblswsmsn.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblswsmsn.Rows[0]) : null); }
public Swsmsn GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Swsmsn swsmsn = null; if (row != null) { swsmsn = this.BuildFromRow(row); } return(swsmsn); }
protected Swsmsn Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblswsmsn.AsEnumerable().SingleOrDefault(); Swsmsn swsmsn = null; if (row != null) { swsmsn = this.BuildFromRow(row); } return(swsmsn); }
public void Delete(Swsmsn record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblswsmsn.NewttblswsmsnRow(); Swsmsn.BuildMinimalRow(ref row, record); this.dataSet.ttblswsmsn.AddttblswsmsnRow((pdsswsmsnDataSet.ttblswsmsnRow)row); } row.Delete(); this.SaveChanges(); }
public Swsmsn Update(Swsmsn 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.ttblswsmsn.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblswsmsn.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Swsmsn record) { Swsmsn.UpdateRowFromSwsmsn(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Swsmsn record) { this.adapter.Delete(record); }
public Swsmsn Update(Swsmsn record) { return(this.adapter.Update(record)); }
public Swsmsn Insert(Swsmsn record) { return(this.adapter.Insert(record)); }
public void Delete(Swsmsn record) { this.repository.Delete(record); }
public Swsmsn Update(Swsmsn record) { return(this.repository.Update(record)); }
public Swsmsn Insert(Swsmsn record) { return(this.repository.Insert(record)); }