Show / Hide Table of Contents

Class ConcatQueryFunction

Function for generating a string that is a result of combining string values of the function arguments.

Inheritance
System.Object
QueryFunction
ConcatQueryFunction
Implements
IQueryColumnExpressionConvertible
IQueryColumnExpressionsCollector
System.ICloneable
Inherited Members
QueryFunction.Negate(QueryFunction)
QueryFunction.Add(QueryFunction, QueryFunction)
QueryFunction.Subtract(QueryFunction, QueryFunction)
QueryFunction.Multiply(QueryFunction, QueryFunction)
QueryFunction.Divide(QueryFunction, QueryFunction)
QueryFunction.GetQueryColumnExpressions()
QueryFunction.GetQueryColumnExpression()
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Terrasoft.Core.DB
Assembly: Terrasoft.Core.dll
Syntax
public class ConcatQueryFunction : QueryFunction, IQueryColumnExpressionConvertible, IQueryColumnExpressionsCollector, ICloneable

Constructors

ConcatQueryFunction(ConcatQueryFunction)

Initializes a new ConcatQueryFunction instance that is a clone of the passed-in function.

Declaration
public ConcatQueryFunction(ConcatQueryFunction source)
Parameters
Type Name Description
ConcatQueryFunction source

The ConcatQueryFunction function whose clone is being created.

ConcatQueryFunction(QueryColumnExpressionCollection)

Initializes a new ConcatQueryFunction instance for the passed-in collection of expressions.

Declaration
public ConcatQueryFunction(QueryColumnExpressionCollection expressions)
Parameters
Type Name Description
QueryColumnExpressionCollection expressions

Collection of column expressions.

Exceptions
Type Condition
System.ArgumentNullException

If the null value is passed as the expressions parameter, or if the expressions collection has no items.

Properties

Expressions

Collection of expressions of function arguments.

Declaration
public QueryColumnExpressionCollection Expressions { get; }
Property Value
Type Description
QueryColumnExpressionCollection

Methods

AddQueryColumnExpressions(QueryColumnExpressionCollection)

Declaration
protected override void AddQueryColumnExpressions(QueryColumnExpressionCollection collection)
Parameters
Type Name Description
QueryColumnExpressionCollection collection
Overrides
QueryFunction.AddQueryColumnExpressions(QueryColumnExpressionCollection)

AddUsingParameters(QueryParameterCollection)

In the function arguments adds the passed-in collection of parameters.

Declaration
public override void AddUsingParameters(QueryParameterCollection resultParameters)
Parameters
Type Name Description
QueryParameterCollection resultParameters

Collection of the query parameters.

Overrides
QueryFunction.AddUsingParameters(QueryParameterCollection)

BuildSqlText(StringBuilder, DBEngine)

Generates the query text, using the specified System.Text.StringBuilder instance and the DBEngine query builder.

Declaration
public override void BuildSqlText(StringBuilder sb, DBEngine dbEngine)
Parameters
Type Name Description
System.Text.StringBuilder sb

The System.Text.StringBuilder instance used to create query text.

DBEngine dbEngine

The instance of the builder of the database queries.

Overrides
QueryFunction.BuildSqlText(StringBuilder, DBEngine)
Exceptions
Type Condition
InvalidObjectStateException

If the collection of function arguments does not contain any expressions.

Clone()

Creates the clone of the current ConcatQueryFunction instance.

Declaration
public override object Clone()
Returns
Type Description
System.Object

A new ConcatQueryFunction instance that is a clone of the current instance.

Overrides
QueryFunction.Clone()

Implements

IQueryColumnExpressionConvertible
IQueryColumnExpressionsCollector
System.ICloneable

Extension Methods

ReflectionUtilities.GetPropertyValue(Object, String)
ReflectionUtilities.GetPropertyDefValue(Object, String, Object)
ReflectionUtilities.TryGetPropertyValue(Object, String, out Object)
ReflectionUtilities.HasProperty(Object, String)
ReflectionUtilities.GetPropertyValue(Object, String, BindingFlags)
ReflectionUtilities.GetPropertyValueByPath(Object, String)
ReflectionUtilities.SetPropertyValue(Object, String, Object)
ReflectionUtilities.TrySetPropertyValue(Object, String, Object)
ValidateUtilities.CheckArgumentNull(Object, String)
ValidateUtilities.CheckDependencyNull(Object, String)
ValidateUtilities.EnsureDependencyNotNull<T>(T, String)
MetaDataTestUtils.MetaPropertiesShouldNotHaveDefValue<TInstance>(TInstance)
MetaDataTestUtils.MetaPropertiesShouldNotHaveDefValue<TInstance>(TInstance, Boolean)
NSubstituteExtension.Protected(Object, String, Object[])
NSubstituteExtension.Protected(Object, String, Boolean, Object[])
NSubstituteExtension.ProtectedGeneric<T>(Object, String, Object[])
NSubstituteExtension.ProtectedGeneric<T>(Object, String, Boolean, Object[])
NSubstituteExtension.ProtectedProperty(Object, String)
NSubstituteExtension.MatchInstance<T>(T)
SubstituteUtilities.GetIsSubstituteObject(Object)
SubstituteUtilities.Instead<TInstance, TValue>(TInstance, Func<TInstance, TValue>)
Back to top Generated by DocFX