public Smsp BuildFromRow(DataRow row) { var returnRecord = Smsp.BuildSmspFromRow(row); returnRecord = this.BuildExtraFromRow <Smsp>(returnRecord, row); return(returnRecord); }
public Smsp Insert(Smsp record) { DataRow row = this.dataSet.ttblsmsp.NewttblsmspRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblsmsp.AddttblsmspRow((pdssmspDataSet.ttblsmspRow)row); this.SaveChanges(); return(this.dataSet.ttblsmsp.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblsmsp.Rows[0]) : null); }
public Smsp GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Smsp smsp = null; if (row != null) { smsp = this.BuildFromRow(row); } return(smsp); }
protected Smsp Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblsmsp.AsEnumerable().SingleOrDefault(); Smsp smsp = null; if (row != null) { smsp = this.BuildFromRow(row); } return(smsp); }
public void Delete(Smsp record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblsmsp.NewttblsmspRow(); Smsp.BuildMinimalRow(ref row, record); this.dataSet.ttblsmsp.AddttblsmspRow((pdssmspDataSet.ttblsmspRow)row); } row.Delete(); this.SaveChanges(); }
public Smsp Update(Smsp 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.ttblsmsp.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblsmsp.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Smsp record) { this.adapter.Delete(record); }
public Smsp Update(Smsp record) { return(this.adapter.Update(record)); }
public Smsp Insert(Smsp record) { return(this.adapter.Insert(record)); }
public Smsp Insert(Smsp record) { return(this.repository.Insert(record)); }
public void Delete(Smsp record) { this.repository.Delete(record); }
public Smsp Update(Smsp record) { return(this.repository.Update(record)); }
public void UpdateToRow(ref DataRow row, Smsp record) { Smsp.UpdateRowFromSmsp(ref row, record); this.ExtraUpdateToRow(ref row, record); }