public PvSecure BuildFromRow(DataRow row) { var returnRecord = PvSecure.BuildPvSecureFromRow(row); returnRecord = this.BuildExtraFromRow <PvSecure>(returnRecord, row); return(returnRecord); }
public PvSecure Insert(PvSecure record) { DataRow row = this.dataSet.ttblpv_secure.Newttblpv_secureRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblpv_secure.Addttblpv_secureRow((pdspv_secureDataSet.ttblpv_secureRow)row); this.SaveChanges(); return(this.dataSet.ttblpv_secure.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpv_secure.Rows[0]) : null); }
public PvSecure GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); PvSecure pvSecure = null; if (row != null) { pvSecure = this.BuildFromRow(row); } return(pvSecure); }
protected PvSecure Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblpv_secure.AsEnumerable().SingleOrDefault(); PvSecure pvSecure = null; if (row != null) { pvSecure = this.BuildFromRow(row); } return(pvSecure); }
public void Delete(PvSecure record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblpv_secure.Newttblpv_secureRow(); PvSecure.BuildMinimalRow(ref row, record); this.dataSet.ttblpv_secure.Addttblpv_secureRow((pdspv_secureDataSet.ttblpv_secureRow)row); } row.Delete(); this.SaveChanges(); }
public PvSecure Update(PvSecure 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.ttblpv_secure.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpv_secure.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, PvSecure record) { PvSecure.UpdateRowFromPvSecure(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(PvSecure record) { this.repository.Delete(record); }
public PvSecure Update(PvSecure record) { return(this.repository.Update(record)); }
public PvSecure Insert(PvSecure record) { return(this.repository.Insert(record)); }
public void Delete(PvSecure record) { this.adapter.Delete(record); }
public PvSecure Update(PvSecure record) { return(this.adapter.Update(record)); }
public PvSecure Insert(PvSecure record) { return(this.adapter.Insert(record)); }