public Smsn BuildFromRow(DataRow row) { var returnRecord = Smsn.BuildSmsnFromRow(row); returnRecord = this.BuildExtraFromRow <Smsn>(returnRecord, row); return(returnRecord); }
public Smsn Insert(Smsn record) { DataRow row = this.dataSet.ttblsmsn.NewttblsmsnRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblsmsn.AddttblsmsnRow((pdssmsnDataSet.ttblsmsnRow)row); this.SaveChanges(); return(this.dataSet.ttblsmsn.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblsmsn.Rows[0]) : null); }
public Smsn GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Smsn smsn = null; if (row != null) { smsn = this.BuildFromRow(row); } return(smsn); }
protected Smsn Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblsmsn.AsEnumerable().SingleOrDefault(); Smsn smsn = null; if (row != null) { smsn = this.BuildFromRow(row); } return(smsn); }
private void DeleteUseRowID(Smsn record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblsmsn.NewttblsmsnRow(); Smsn.BuildMinimalRow(ref row, record); this.dataSet.ttblsmsn.AddttblsmsnRow((pdssmsnDataSet.ttblsmsnRow)row); } row.Delete(); this.SaveChanges(); }
public Smsn Update(Smsn record) { var row = this.GetRowByRowpointer(record.rowpointer, string.Empty); if (row != null) { this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.SaveChanges(); return(this.dataSet.ttblsmsn.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblsmsn.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public Smsn Update(Smsn record) { return(this.adapter.Update(record)); }
public Smsn Insert(Smsn record) { return(this.adapter.Insert(record)); }
public void Delete(Smsn record) { this.adapter.Delete(record); }
public void Delete(Smsn record) { this.repository.Delete(record); }
public Smsn Update(Smsn record) { return(this.repository.Update(record)); }
public Smsn Insert(Smsn record) { return(this.repository.Insert(record)); }
public void UpdateToRow(ref DataRow row, Smsn record) { Smsn.UpdateRowFromSmsn(ref row, record); this.ExtraUpdateToRow(ref row, record); }