public Swsct BuildFromRow(DataRow row) { var returnRecord = Swsct.BuildSwsctFromRow(row); returnRecord = this.BuildExtraFromRow <Swsct>(returnRecord, row); return(returnRecord); }
public Swsct Insert(Swsct record) { DataRow row = this.dataSet.ttblswsct.NewttblswsctRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblswsct.AddttblswsctRow((pdsswsctDataSet.ttblswsctRow)row); this.SaveChanges(); return(this.dataSet.ttblswsct.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblswsct.Rows[0]) : null); }
public Swsct GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Swsct swsct = null; if (row != null) { swsct = this.BuildFromRow(row); } return(swsct); }
protected Swsct Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblswsct.AsEnumerable().SingleOrDefault(); Swsct swsct = null; if (row != null) { swsct = this.BuildFromRow(row); } return(swsct); }
public void Delete(Swsct record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblswsct.NewttblswsctRow(); Swsct.BuildMinimalRow(ref row, record); this.dataSet.ttblswsct.AddttblswsctRow((pdsswsctDataSet.ttblswsctRow)row); } row.Delete(); this.SaveChanges(); }
public Swsct Update(Swsct 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.ttblswsct.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblswsct.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Swsct record) { this.repository.Delete(record); }
public Swsct Update(Swsct record) { return(this.repository.Update(record)); }
public Swsct Insert(Swsct record) { return(this.repository.Insert(record)); }
public void UpdateToRow(ref DataRow row, Swsct record) { Swsct.UpdateRowFromSwsct(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Swsct record) { this.adapter.Delete(record); }
public Swsct Update(Swsct record) { return(this.adapter.Update(record)); }
public Swsct Insert(Swsct record) { return(this.adapter.Insert(record)); }