Class QueryParameter
Represents the query parameter.
Inheritance
Implements
Inherited Members
Namespace: Terrasoft.Core.DB
Assembly: Terrasoft.Core.dll
Syntax
public class QueryParameter : ICloneable
Constructors
QueryParameter()
Initializes a new QueryParameter instance.
Declaration
public QueryParameter()
QueryParameter(Object)
Initializes a new QueryParameter instance with the specified value.
Declaration
public QueryParameter(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The value of the query parameter. |
QueryParameter(String, Stream)
Initializes a new QueryParameter instance with the specified name and value of the System.IO.Stream type.
Declaration
public QueryParameter(string name, Stream streamValue)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the query parameter. |
System.IO.Stream | streamValue | The value of the query parameter. |
QueryParameter(String, Object)
Initializes a new QueryParameter instance with the specified name and value.
Declaration
public QueryParameter(string name, object value)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the query parameter. |
System.Object | value | The value of the query parameter. |
QueryParameter(String, Object, String)
Initializes a new QueryParameter instance with the specified name and value of the specific data type.
Declaration
public QueryParameter(string name, object value, string valueTypeName)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the query parameter. |
System.Object | value | The value of the query parameter. |
System.String | valueTypeName | The name of the data type of the query parameter value. |
QueryParameter(String, Object, DataValueType)
Initializes a new QueryParameter instance with the specified name and value of the specific data type.
Declaration
public QueryParameter(string name, object value, DataValueType valueType)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the query parameter. |
System.Object | value | The value of the query parameter. |
DataValueType | valueType | The data type of the query parameter value. |
QueryParameter(QueryParameter)
Initializes a new QueryParameter instance that is a clone of the specified QueryParameter instance.
Declaration
public QueryParameter(QueryParameter source)
Parameters
Type | Name | Description |
---|---|---|
QueryParameter | source | The QueryParameter instance whose clone is being created. |
Properties
Direction
The direction of the parameter value transfer.
Declaration
public ParameterDirection Direction { get; set; }
Property Value
Type | Description |
---|---|
ParameterDirection |
IsAutoAdded
Indicates whether the query parameter is automatically added.
Declaration
public bool IsAutoAdded { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsAutoName
Determines whether to generate a name of the query parameter automatically.
Declaration
public bool IsAutoName { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Name
The name of the query parameter.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ParentParametrizedQuery
The parent query to which the parameter belongs.
Declaration
public IParametrizedQuery ParentParametrizedQuery { get; set; }
Property Value
Type | Description |
---|---|
IParametrizedQuery |
Value
The value of the query parameter.
Declaration
public object Value { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
ValueType
The value type of the query parameter.
Declaration
public DataValueType ValueType { get; set; }
Property Value
Type | Description |
---|---|
DataValueType |
ValueTypeName
The name of the value type of the query parameter.
Declaration
public string ValueTypeName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Clone()
Creates the clone of the current QueryParameter instance.
Declaration
public object Clone()
Returns
Type | Description |
---|---|
System.Object | The QueryParameter instance that is a clone of the current instance. |
Equals(Object)
Determines whether the given QueryParameter instance and the specified System.Object instance have the same values.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The System.Object instance that is compared to the current QueryParameter instance. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
GetHashCode()
Returns a hash code for an entity.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | The hash code for the entity. |