/// <summary>Initializes a new instance of <b>IStoredProcedureParameter</b> class.</summary> /// <param name="name">Parameter name.</param> /// <param name="ordinal">The position of parameter in SP definition.</param> /// <param name="nativeDbType">Native DB type, as defined by meta-data source.</param> /// <param name="size">Length of textual parameter.</param> /// <param name="precision">The number of decimal places to which a field value is resolved.</param> /// <param name="scale">The number of decimal places to which a field value is resolved.</param> /// <param name="parDirection">Direction modifier: in, out, in-out or return value.</param> /// <param name="passMode">Specifies how argument is handled and passed to stored procedures.</param> public StoredProcedureParameter(string name, int ordinal, string nativeDbType, int size, int precision, int scale, ParameterDirection parDirection, SpArgumentPassMode passMode) { this.ParameterName = name; this.Ordinal = ordinal; this.NativeDbType = nativeDbType; this.Size = size; this.Precision = precision; this.Scale = scale; this.Direction = parDirection; this.PassMode = passMode; }
/// <summary> /// Initializes a new instance of the DbParameter class. /// </summary> /// <param name="name">The name of the parameter to map. <b>Null</b> is not allowed.</param> /// <param name="dbType">One of the <see cref="DbType"/> values.</param> /// <param name="size">The length of the parameter.</param> /// <param name="direction">One of the <see cref="ParameterDirection"/> values.</param> /// <param name="isNullable">True if the value of the field can be null, otherwise false.</param> /// <param name="precision">The total number of digits to the left and right of the decimal point to which <see cref="Value"/> is resolved.</param> /// <param name="scale">The total number of decimal places to which <see cref="Value"/> is resolved.</param> /// <param name="sourceColumn">The name of the source column.</param> /// <param name="sourceVersion">One of the <see cref="DataRowVersion"/> values.</param> /// <param name="value">An Object that is the value of the DbParameter.</param> /// <param name="passMode">Specifies how argument is handled and passed to stored procedures.</param> public DbParameter(string name, DbType dbType, int size, ParameterDirection direction, bool isNullable, byte precision, byte scale, string sourceColumn, DataRowVersion sourceVersion, object value, SpArgumentPassMode passMode) { // Property validates given value and sets both the uniqueName and originalName members. this.ParameterName = name; this.dbType = dbType; this.size = size; this.direction = direction; this.isNullable = isNullable; this.precision = precision; this.scale = scale; this.sourceColumn = sourceColumn; this.sourceVersion = sourceVersion; this.value = value; this.passMode = passMode; }
/// <summary>Initializes a new instance of <b>IStoredProcedureParameter</b> class.</summary> /// <param name="name">Parameter name.</param> /// <param name="ordinal">The position of parameter in SP definition.</param> /// <param name="oraType">Native DB type, as defined by meta-data source.</param> /// <param name="size">Length of textual parameter.</param> /// <param name="precision">The number of decimal places to which a field value is resolved.</param> /// <param name="scale">The number of decimal places to which a field value is resolved.</param> /// <param name="parDirection">Direction modifier: in, out, in-out or return value.</param> /// <param name="passMode">Specifies how argument is handled and passed to stored procedures.</param> public OracleStoredProcedureParameter(string name, int ordinal, string oraType, int size, int precision, int scale, ParameterDirection parDirection, SpArgumentPassMode passMode) : base(name, ordinal, oraType, size, precision, scale, parDirection, passMode) { }