Class QueryParam
SQL query parameter
Inherited Members
Namespace: XData.Database.Adapter
Assembly: XData.docfx.dll
Syntax
public class QueryParam
Constructors
| Improve this Doc View SourceQueryParam(String, Object, DbType, Int32)
Query parameter constructor
Declaration
public QueryParam(string name, object value = null, DbType type = DbType.String, int length = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| String | name | Parameter name |
| Object | value | Parameter value |
| DbType | type | Parameter data type |
| Int32 | length | Parameter value max length |
QueryParam(QueryParam, Object)
Query parameter copy constructor
Declaration
public QueryParam(QueryParam param, object value = null)
Parameters
| Type | Name | Description |
|---|---|---|
| QueryParam | param | Parameter name |
| Object | value | Parameter value |
Properties
| Improve this Doc View SourceDirection
Parameter direction
Declaration
public ParameterDirection Direction { get; set; }
Property Value
| Type | Description |
|---|---|
| ParameterDirection |
IsArray
Collection type array flag
Set to true to use with VARARRAY collections
WARNING! Using UDT can be not supported or limited by adapter!
Declaration
public bool IsArray { get; set; }
Property Value
| Type | Description |
|---|---|
| Boolean |
IsResultSet
Parameter is result set
Declaration
public bool IsResultSet { get; set; }
Property Value
| Type | Description |
|---|---|
| Boolean |
Length
Parameter value max length
Declaration
public int Length { get; }
Property Value
| Type | Description |
|---|---|
| Int32 |
Name
Parameter name
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| String |
NativeSqlType
Parameter native SQL type
Declaration
public string NativeSqlType { get; set; }
Property Value
| Type | Description |
|---|---|
| String |
Type
Parameter data type
Declaration
public DbType Type { get; }
Property Value
| Type | Description |
|---|---|
| DbType |
UdtElementTypeName
Single object (or collection element) user defined type (UDT) SQL type name
WARNING! Specify full qualified type name!
WARNING! Using UDT can be not supported or limited by adapter!
Declaration
public string UdtElementTypeName { get; set; }
Property Value
| Type | Description |
|---|---|
| String |
UdtMappedType
Class type mapped with user defined type (UDT) SQL type name
This type properties are mapped to SQL type by name (case insensitive)
WARNING! Beware to use property data types not supported by adapter or user defined type (UDT)!
WARNING! Using UDT can be not supported or limited by adapter!
Declaration
public Type UdtMappedType { get; set; }
Property Value
| Type | Description |
|---|---|
| Type |
UdtTypeName
Collection user defined type (UDT) SQL type name
WARNING! Specify full qualified type name!
WARNING! Using UDT can be not supported or limited by adapter!
Declaration
public string UdtTypeName { get; set; }
Property Value
| Type | Description |
|---|---|
| String |
Value
Parameter value
Declaration
public object Value { get; }
Property Value
| Type | Description |
|---|---|
| Object |
Methods
| Improve this Doc View SourceToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| String |