protected void InternalAddParameter(DatabaseParameterDirection direction, string name, object value, DatabaseDbType dbType)
        {
            if (VerifyIfParameterAdded(name))
            {
                return;
            }

            var parameter = new DatabaseParameter()
            {
                Name      = name,
                Value     = value,
                Direction = direction,
                DbType    = dbType
            };

            Parameters.Add(parameter);
        }
 public Database AddParameterInputOutput(string name, object value, DatabaseDbType dbType)
 {
     InternalAddParameter(DatabaseParameterDirection.InputOutput, name, value, dbType);
     return(this);
 }
 public Database AddParameterReturnValue(string name, DatabaseDbType dbType)
 {
     InternalAddParameter(DatabaseParameterDirection.ReturnValue, name, null, dbType);
     return(this);
 }
 public Database AddParameterOutput(string name, DatabaseDbType dbType)
 {
     InternalAddParameter(DatabaseParameterDirection.Output, name, null, dbType);
     return(this);
 }