Esempio n. 1
0
        public void AddParameters(string paramName, object objValue)
        {
            IDbDataParameter param = DBManagerFactory.GetParameter(this.providerType);

            param.ParameterName = paramName;
            param.Value         = objValue;
            param.Direction     = ParameterDirection.Input;

            idbParameters.Add(param);
        }
Esempio n. 2
0
        public void AddParameters(string paramName, ParameterDirection direction, DbType type, object objValue = null)
        {
            IDbDataParameter param = DBManagerFactory.GetParameter(this.providerType);

            param.ParameterName = paramName;
            param.Value         = objValue;
            param.Direction     = direction;
            param.DbType        = type;

            idbParameters.Add(param);
        }