Show / Hide Table of Contents

Class SubstringQueryFunction

Function which gets part of a string.

Inheritance
System.Object
QueryFunction
SubstringQueryFunction
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 SubstringQueryFunction : QueryFunction, IQueryColumnExpressionConvertible, IQueryColumnExpressionsCollector, ICloneable

Constructors

SubstringQueryFunction(IQueryColumnExpressionConvertible, Int32, Int32)

Initializes new instance of SubstringQueryFunction class with specified column expression, substring start position and length.

Declaration
public SubstringQueryFunction(IQueryColumnExpressionConvertible expression, int start, int length)
Parameters
Type Name Description
IQueryColumnExpressionConvertible expression

Column expression.

System.Int32 start

Substring start position.

System.Int32 length

Substring length

SubstringQueryFunction(QueryColumnExpression, Int32, Int32)

Initializes new instance of SubstringQueryFunction class with specified column expression, substring start position and length.

Declaration
public SubstringQueryFunction(QueryColumnExpression expression, int start, int length)
Parameters
Type Name Description
QueryColumnExpression expression

Column expression.

System.Int32 start

Substring start position.

System.Int32 length

Substring length

SubstringQueryFunction(SubstringQueryFunction)

Initializes new instance of SubstringQueryFunction class by source function cloning.

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

Source function.

Properties

Expression

Column expression.

Declaration
public QueryColumnExpression Expression { get; set; }
Property Value
Type Description
QueryColumnExpression

LengthExpression

Substring length

Declaration
public QueryColumnExpression LengthExpression { get; set; }
Property Value
Type Description
QueryColumnExpression

StartExpression

Substring start position.

Declaration
public QueryColumnExpression StartExpression { get; set; }
Property Value
Type Description
QueryColumnExpression

Methods

AddQueryColumnExpressions(QueryColumnExpressionCollection)

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

AddUsingParameters(QueryParameterCollection)

Adds collection of query parameters to the function.

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

Collection of query parameters.

Overrides
QueryFunction.AddUsingParameters(QueryParameterCollection)

BuildSqlText(StringBuilder, DBEngine)

Generates the request body using System.Text.StringBuilder and DBEngine.

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

Instance of the System.Text.StringBuilder, which used in query builder.

DBEngine dbEngine

Instance of the DBEngine.

Overrides
QueryFunction.BuildSqlText(StringBuilder, DBEngine)

Clone()

Creates clone of the current instance SubstringQueryFunction

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

New instance SubstringQueryFunction, 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