private IDbDataParameter GetInOutParameter(InOut p) { IDbDataParameter par = Provider.GetParameter(); par.Direction = ParameterDirection.InputOutput; par.ParameterName = p.Name; par.Size = p.Size; par.Value = p.Value ?? DBNull.Value; par.DbType = p.Type; return(par); }
private void RetrieveOutParameters(object[] parameters, IDbCommand cmd) { if (parameters == null) { return; } foreach (object parameter in parameters) { Out pout = parameter as Out; if (pout != null) { pout.Value = ((IDbDataParameter)cmd.Parameters[pout.Name]).Value; continue; } InOut pinout = parameter as InOut; if (pinout != null) { pinout.Value = ((IDbDataParameter)cmd.Parameters[pinout.Name]).Value; continue; } } }
private IDbDataParameter GetInOutParameter(InOut p) { IDbDataParameter par = Provider.GetParameter(); par.Direction = ParameterDirection.InputOutput; par.ParameterName = p.Name; par.Size = p.Size; par.Value = p.Value ?? DBNull.Value; par.DbType = p.Type; return par; }