public SysparValue BuildFromRow(DataRow row) { var returnRecord = SysparValue.BuildSysparValueFromRow(row); returnRecord = this.BuildExtraFromRow <SysparValue>(returnRecord, row); return(returnRecord); }
public SysparValue Insert(SysparValue record) { DataRow row = this.dataSet.ttblsyspar_value.Newttblsyspar_valueRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblsyspar_value.Addttblsyspar_valueRow((pdssyspar_valueDataSet.ttblsyspar_valueRow)row); this.SaveChanges(); return(this.dataSet.ttblsyspar_value.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblsyspar_value.Rows[0]) : null); }
public SysparValue GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); SysparValue sysparValue = null; if (row != null) { sysparValue = this.BuildFromRow(row); } return(sysparValue); }
protected SysparValue Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblsyspar_value.AsEnumerable().SingleOrDefault(); SysparValue sysparValue = null; if (row != null) { sysparValue = this.BuildFromRow(row); } return(sysparValue); }
public void Delete(SysparValue record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblsyspar_value.Newttblsyspar_valueRow(); SysparValue.BuildMinimalRow(ref row, record); this.dataSet.ttblsyspar_value.Addttblsyspar_valueRow((pdssyspar_valueDataSet.ttblsyspar_valueRow)row); } row.Delete(); this.SaveChanges(); }
public SysparValue Update(SysparValue 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.ttblsyspar_value.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblsyspar_value.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public SysparValue Update(SysparValue record) { return(this.repository.Update(record)); }
public SysparValue Insert(SysparValue record) { return(this.repository.Insert(record)); }
public void Delete(SysparValue record) { this.repository.Delete(record); }
public void UpdateToRow(ref DataRow row, SysparValue record) { SysparValue.UpdateRowFromSysparValue(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(SysparValue record) { this.adapter.Delete(record); }
public SysparValue Update(SysparValue record) { return(this.adapter.Update(record)); }
public SysparValue Insert(SysparValue record) { return(this.adapter.Insert(record)); }