Class DataParameter
[ScalarType]
public class DataParameter
- Inheritance
-
DataParameter
- Extension Methods
Constructors
DataParameter()
public DataParameter()
DataParameter(string?, object?)
public DataParameter(string? name, object? value)
Parameters
DataParameter(string?, object?, DataType)
public DataParameter(string? name, object? value, DataType dataType)
Parameters
DataParameter(string?, object?, DataType, string?)
public DataParameter(string? name, object? value, DataType dataType, string? dbType)
Parameters
DataParameter(string?, object?, string)
public DataParameter(string? name, object? value, string dbType)
Parameters
Properties
DataType
Gets or sets the DataType of the parameter.
public DataType DataType { get; set; }
Property Value
DbType
Gets or sets Database Type name of the parameter.
public string? DbType { get; set; }
Property Value
- string
Name of Database Type or empty string.
Direction
Gets or sets a value indicating whether the parameter is input-only, output-only, bidirectional, or a stored procedure return value parameter.
public ParameterDirection? Direction { get; set; }
Property Value
- ParameterDirection?
One of the ParameterDirection values. The default is Input.
IsArray
public bool IsArray { get; set; }
Property Value
Name
Gets or sets the name of the DataParameter.
public string? Name { get; set; }
Property Value
- string
The name of the DataParameter. The default is an empty string.
Output
Provider's parameter instance for out, in-out, return parameters. Could be used to read parameter value for complex types like Oracle's BFile.
public DbParameter? Output { get; }
Property Value
Precision
Gets or sets precision for parameter type.
public int? Precision { get; set; }
Property Value
- int?
Scale
Gets or sets scale for parameter type.
public int? Scale { get; set; }
Property Value
- int?
Size
Gets or sets the maximum size, in bytes, of the data within the column.
public int? Size { get; set; }
Property Value
- int?
The maximum size, in bytes, of the data within the column. The default value is inferred from the parameter value.
Value
Gets or sets the value of the parameter.
public object? Value { get; set; }
Property Value
Methods
Binary(string?, byte[]?)
public static DataParameter Binary(string? name, byte[]? value)
Parameters
Returns
Binary(string?, Binary?)
public static DataParameter Binary(string? name, Binary? value)
Parameters
Returns
BinaryJson(string?, string?)
public static DataParameter BinaryJson(string? name, string? value)
Parameters
Returns
BitArray(string?, BitArray?)
public static DataParameter BitArray(string? name, BitArray? value)
Parameters
Returns
Blob(string?, byte[]?)
public static DataParameter Blob(string? name, byte[]? value)
Parameters
Returns
Boolean(string?, bool)
public static DataParameter Boolean(string? name, bool value)
Parameters
Returns
Byte(string?, byte)
public static DataParameter Byte(string? name, byte value)
Parameters
Returns
Char(string?, char)
public static DataParameter Char(string? name, char value)
Parameters
Returns
Char(string?, string?)
public static DataParameter Char(string? name, string? value)
Parameters
Returns
Create(string?, bool)
public static DataParameter Create(string? name, bool value)
Parameters
Returns
Create(string?, byte)
public static DataParameter Create(string? name, byte value)
Parameters
Returns
Create(string?, byte[]?)
public static DataParameter Create(string? name, byte[]? value)
Parameters
Returns
Create(string?, char)
public static DataParameter Create(string? name, char value)
Parameters
Returns
Create(string?, BitArray?)
public static DataParameter Create(string? name, BitArray? value)
Parameters
Returns
Create(string?, Dictionary<string, string>?)
public static DataParameter Create(string? name, Dictionary<string, string>? value)
Parameters
name
stringvalue
Dictionary<string, string>
Returns
Create(string?, Binary?)
public static DataParameter Create(string? name, Binary? value)
Parameters
Returns
Create(string?, DateTime)
public static DataParameter Create(string? name, DateTime value)
Parameters
Returns
Create(string?, DateTimeOffset)
public static DataParameter Create(string? name, DateTimeOffset value)
Parameters
name
stringvalue
DateTimeOffset
Returns
Create(string?, decimal)
public static DataParameter Create(string? name, decimal value)
Parameters
Returns
Create(string?, double)
public static DataParameter Create(string? name, double value)
Parameters
Returns
Create(string?, Guid)
public static DataParameter Create(string? name, Guid value)
Parameters
Returns
Create(string?, short)
public static DataParameter Create(string? name, short value)
Parameters
Returns
Create(string?, int)
public static DataParameter Create(string? name, int value)
Parameters
Returns
Create(string?, long)
public static DataParameter Create(string? name, long value)
Parameters
Returns
Create(string?, sbyte)
[CLSCompliant(false)]
public static DataParameter Create(string? name, sbyte value)
Parameters
Returns
Create(string?, float)
public static DataParameter Create(string? name, float value)
Parameters
Returns
Create(string?, string?)
public static DataParameter Create(string? name, string? value)
Parameters
Returns
Create(string?, TimeSpan)
public static DataParameter Create(string? name, TimeSpan value)
Parameters
Returns
Create(string?, ushort)
[CLSCompliant(false)]
public static DataParameter Create(string? name, ushort value)
Parameters
Returns
Create(string?, uint)
[CLSCompliant(false)]
public static DataParameter Create(string? name, uint value)
Parameters
Returns
Create(string?, ulong)
[CLSCompliant(false)]
public static DataParameter Create(string? name, ulong value)
Parameters
Returns
Create(string?, XDocument?)
public static DataParameter Create(string? name, XDocument? value)
Parameters
Returns
Create(string?, XmlDocument?)
public static DataParameter Create(string? name, XmlDocument? value)
Parameters
name
stringvalue
XmlDocument
Returns
Date(string?, DateTime)
public static DataParameter Date(string? name, DateTime value)
Parameters
Returns
DateTime(string?, DateTime)
public static DataParameter DateTime(string? name, DateTime value)
Parameters
Returns
DateTime2(string?, DateTime)
public static DataParameter DateTime2(string? name, DateTime value)
Parameters
Returns
DateTimeOffset(string?, DateTimeOffset)
public static DataParameter DateTimeOffset(string? name, DateTimeOffset value)
Parameters
name
stringvalue
DateTimeOffset
Returns
Decimal(string?, decimal)
public static DataParameter Decimal(string? name, decimal value)
Parameters
Returns
Dictionary(string?, IDictionary?)
public static DataParameter Dictionary(string? name, IDictionary? value)
Parameters
name
stringvalue
IDictionary
Returns
Double(string?, double)
public static DataParameter Double(string? name, double value)
Parameters
Returns
Guid(string?, Guid)
public static DataParameter Guid(string? name, Guid value)
Parameters
Returns
Image(string?, byte[]?)
public static DataParameter Image(string? name, byte[]? value)
Parameters
Returns
Int16(string?, short)
public static DataParameter Int16(string? name, short value)
Parameters
Returns
Int32(string?, int)
public static DataParameter Int32(string? name, int value)
Parameters
Returns
Int64(string?, long)
public static DataParameter Int64(string? name, long value)
Parameters
Returns
Json(string?, string?)
public static DataParameter Json(string? name, string? value)
Parameters
Returns
Money(string?, decimal)
public static DataParameter Money(string? name, decimal value)
Parameters
Returns
NChar(string?, char)
public static DataParameter NChar(string? name, char value)
Parameters
Returns
NChar(string?, string?)
public static DataParameter NChar(string? name, string? value)
Parameters
Returns
NText(string?, string?)
public static DataParameter NText(string? name, string? value)
Parameters
Returns
NVarChar(string?, char)
public static DataParameter NVarChar(string? name, char value)
Parameters
Returns
NVarChar(string?, string?)
public static DataParameter NVarChar(string? name, string? value)
Parameters
Returns
SByte(string?, sbyte)
[CLSCompliant(false)]
public static DataParameter SByte(string? name, sbyte value)
Parameters
Returns
Single(string?, float)
public static DataParameter Single(string? name, float value)
Parameters
Returns
SmallDateTime(string?, DateTime)
public static DataParameter SmallDateTime(string? name, DateTime value)
Parameters
Returns
SmallMoney(string?, decimal)
public static DataParameter SmallMoney(string? name, decimal value)
Parameters
Returns
Text(string?, string?)
public static DataParameter Text(string? name, string? value)
Parameters
Returns
Time(string?, TimeSpan)
public static DataParameter Time(string? name, TimeSpan value)
Parameters
Returns
Timestamp(string?, byte[]?)
public static DataParameter Timestamp(string? name, byte[]? value)
Parameters
Returns
UInt16(string?, ushort)
[CLSCompliant(false)]
public static DataParameter UInt16(string? name, ushort value)
Parameters
Returns
UInt32(string?, uint)
[CLSCompliant(false)]
public static DataParameter UInt32(string? name, uint value)
Parameters
Returns
UInt64(string?, ulong)
[CLSCompliant(false)]
public static DataParameter UInt64(string? name, ulong value)
Parameters
Returns
Udt(string?, object?)
public static DataParameter Udt(string? name, object? value)
Parameters
Returns
VarBinary(string?, byte[]?)
public static DataParameter VarBinary(string? name, byte[]? value)
Parameters
Returns
VarBinary(string?, Binary?)
public static DataParameter VarBinary(string? name, Binary? value)
Parameters
Returns
VarChar(string?, char)
public static DataParameter VarChar(string? name, char value)
Parameters
Returns
VarChar(string?, string?)
public static DataParameter VarChar(string? name, string? value)
Parameters
Returns
VarNumeric(string?, decimal)
public static DataParameter VarNumeric(string? name, decimal value)
Parameters
Returns
Variant(string?, object?)
public static DataParameter Variant(string? name, object? value)
Parameters
Returns
Xml(string?, string?)
public static DataParameter Xml(string? name, string? value)
Parameters
Returns
Xml(string?, XDocument?)
public static DataParameter Xml(string? name, XDocument? value)
Parameters
Returns
Xml(string?, XmlDocument?)
public static DataParameter Xml(string? name, XmlDocument? value)
Parameters
name
stringvalue
XmlDocument