public PvUser BuildFromRow(DataRow row) { var returnRecord = PvUser.BuildPvUserFromRow(row); returnRecord = this.BuildExtraFromRow <PvUser>(returnRecord, row); return(returnRecord); }
public PvUser Insert(PvUser record) { DataRow row = this.dataSet.ttblpv_user.Newttblpv_userRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblpv_user.Addttblpv_userRow((pdspv_userDataSet.ttblpv_userRow)row); this.SaveChanges(); return(this.dataSet.ttblpv_user.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpv_user.Rows[0]) : null); }
public PvUser GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); PvUser pvUser = null; if (row != null) { pvUser = this.BuildFromRow(row); } return(pvUser); }
protected PvUser Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblpv_user.AsEnumerable().SingleOrDefault(); PvUser pvUser = null; if (row != null) { pvUser = this.BuildFromRow(row); } return(pvUser); }
private void DeleteUseRowID(PvUser record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblpv_user.Newttblpv_userRow(); PvUser.BuildMinimalRow(ref row, record); this.dataSet.ttblpv_user.Addttblpv_userRow((pdspv_userDataSet.ttblpv_userRow)row); } row.Delete(); this.SaveChanges(); }
public PvUser Update(PvUser 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.ttblpv_user.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpv_user.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, PvUser record) { PvUser.UpdateRowFromPvUser(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(PvUser record) { this.repository.Delete(record); }
public PvUser Update(PvUser record) { return(this.repository.Update(record)); }
public PvUser Insert(PvUser record) { return(this.repository.Insert(record)); }
public PvUser Insert(PvUser record) { return(this.adapter.Insert(record)); }
public void Delete(PvUser record) { this.adapter.Delete(record); }
public PvUser Update(PvUser record) { return(this.adapter.Update(record)); }