public Smsvw BuildFromRow(DataRow row) { var returnRecord = Smsvw.BuildSmsvwFromRow(row); returnRecord = this.BuildExtraFromRow <Smsvw>(returnRecord, row); return(returnRecord); }
public Smsvw Insert(Smsvw record) { DataRow row = this.dataSet.ttblsmsvw.NewttblsmsvwRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblsmsvw.AddttblsmsvwRow((pdssmsvwDataSet.ttblsmsvwRow)row); this.SaveChanges(); return(this.dataSet.ttblsmsvw.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblsmsvw.Rows[0]) : null); }
public Smsvw GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Smsvw smsvw = null; if (row != null) { smsvw = this.BuildFromRow(row); } return(smsvw); }
protected Smsvw Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblsmsvw.AsEnumerable().SingleOrDefault(); Smsvw smsvw = null; if (row != null) { smsvw = this.BuildFromRow(row); } return(smsvw); }
public void Delete(Smsvw record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblsmsvw.NewttblsmsvwRow(); Smsvw.BuildMinimalRow(ref row, record); this.dataSet.ttblsmsvw.AddttblsmsvwRow((pdssmsvwDataSet.ttblsmsvwRow)row); } row.Delete(); this.SaveChanges(); }
public Smsvw Update(Smsvw 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.ttblsmsvw.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblsmsvw.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Smsvw record) { this.adapter.Delete(record); }
public Smsvw Update(Smsvw record) { return(this.adapter.Update(record)); }
public Smsvw Insert(Smsvw record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Smsvw record) { Smsvw.UpdateRowFromSmsvw(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Smsvw record) { this.repository.Delete(record); }
public Smsvw Update(Smsvw record) { return(this.repository.Update(record)); }
public Smsvw Insert(Smsvw record) { return(this.repository.Insert(record)); }