Show / Hide Table of Contents

Class Update

Query to update data.

Inheritance
System.Object
Query
Update
UpdateSelect
Implements
IParametrizedQuery
ISqlGenerating
ICacheableQuery
System.ICloneable
IDBCommand
Inherited Members
Query.Execute()
Query.Execute(DBExecutor)
Query.ResetParameters()
Query.InitializeParameters()
Query.IParametrizedQuery.InitializeParameters()
Query.Join(JoinType, String)
Query.Join(JoinType, Select)
Query.Join(JoinType, Query)
Query.Join(JoinType, QuerySourceExpression)
Query.InnerJoin(String)
Query.InnerJoin(Select)
Query.InnerJoin(Query)
Query.InnerJoin(QuerySourceExpression)
Query.LeftOuterJoin(String)
Query.LeftOuterJoin(Select)
Query.LeftOuterJoin(Query)
Query.LeftOuterJoin(QuerySourceExpression)
Query.RightOuterJoin(String)
Query.RightOuterJoin(Select)
Query.RightOuterJoin(Query)
Query.RightOuterJoin(QuerySourceExpression)
Query.FullOuterJoin(String)
Query.FullOuterJoin(Select)
Query.FullOuterJoin(Query)
Query.FullOuterJoin(QuerySourceExpression)
Query.Where()
Query.Where(String)
Query.Where(String, String)
Query.Where(Select)
Query.Where(Query)
Query.Where(QueryParameter)
Query.Where(QueryColumnExpression)
Query.Where(IQueryColumnExpressionConvertible)
Query.Where(QueryCondition)
Query.And()
Query.And(String)
Query.And(String, String)
Query.And(Select)
Query.And(Query)
Query.And(QueryParameter)
Query.And(QueryColumnExpression)
Query.And(IQueryColumnExpressionConvertible)
Query.And(QueryCondition)
Query.Or()
Query.Or(String)
Query.Or(String, String)
Query.Or(Select)
Query.Or(Query)
Query.Or(QueryParameter)
Query.Or(QueryColumnExpression)
Query.Or(IQueryColumnExpressionConvertible)
Query.Or(QueryCondition)
Query.AddCondition(LogicalOperation)
Query.AddCondition(String, LogicalOperation)
Query.AddCondition(String, String, LogicalOperation)
Query.AddCondition(Select, LogicalOperation)
Query.AddCondition(Query, LogicalOperation)
Query.AddCondition(QueryParameter, LogicalOperation)
Query.AddCondition(QueryColumnExpression, LogicalOperation)
Query.AddCondition(IQueryColumnExpressionConvertible, LogicalOperation)
Query.AddCondition(QueryCondition, LogicalOperation)
Query.CloseBlock()
Query.OrderBy(OrderDirectionStrict, String)
Query.OrderBy(OrderDirectionStrict, String, String)
Query.OrderBy(OrderDirectionStrict, QueryFunction)
Query.OrderBy(OrderDirectionStrict, Select)
Query.OrderBy(OrderDirectionStrict, Query)
Query.OrderBy(OrderDirectionStrict, QueryColumnExpression)
Query.OrderBy(OrderDirectionStrict, IQueryColumnExpressionConvertible)
Query.OrderByAsc(String)
Query.OrderByAsc(String, String)
Query.OrderByAsc(Select)
Query.OrderByAsc(Query)
Query.OrderByAsc(QueryColumnExpression)
Query.OrderByAsc(IQueryColumnExpressionConvertible)
Query.OrderByDesc(String)
Query.OrderByDesc(String, String)
Query.OrderByDesc(Select)
Query.OrderByDesc(Query)
Query.OrderByDesc(QueryColumnExpression)
Query.OrderByDesc(IQueryColumnExpressionConvertible)
Query.GroupBy(String)
Query.GroupBy(String, String)
Query.GroupBy(QueryColumnExpression)
Query.GroupBy(IQueryColumnExpressionConvertible)
Query.Having()
Query.Having(String)
Query.Having(String, String)
Query.Having(Select)
Query.Having(Query)
Query.Having(IQueryColumnExpressionConvertible)
Query.Having(QueryParameter)
Query.Having(QueryColumnExpression)
Query.Union(Select)
Query.Union(Query)
Query.UnionAll(Select)
Query.UnionAll(Query)
Query.ResetCachedSqlText()
Query.SetParameterValue(String, Object)
Query.DBEngine
Query.UserConnection
Query.RowCount
Query.Parameters
Query.HasParameters
Query.BuildParametersAsValue
Query.Joins
Query.HasJoins
Query.Condition
Query.HasCondition
Query.HavingCondition
Query.HasHavingCondition
Query.OrderByItems
Query.HasOrderByItems
Query.GroupByItems
Query.HasGroupByItems
Query.UnionQueries
Query.HasUnionQueries
Query.IsUnionTypeAll
Query.IsCacheEnabled
Query.CachedSqlText
Query.Hints
Query.HasHints
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 Update : Query, IParametrizedQuery, ISqlGenerating, ICacheableQuery, ICloneable, IDBCommand

Constructors

Update(Update)

Initializes a new Update instance that is a clone of the passed-in query.

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

The refresh query whose clone is being created.

Update(UserConnection)

Initializes a new Update instance, using the specified user connection.

Declaration
public Update(UserConnection userConnection)
Parameters
Type Name Description
UserConnection userConnection

User connection.

Update(UserConnection, String)

Initializes a new Update instance for the schema with the specified name using the specified user connection.

Declaration
public Update(UserConnection userConnection, string schemaName)
Parameters
Type Name Description
UserConnection userConnection

User connection.

System.String schemaName

Name of the schema.

Update(UserConnection, ModifyQuerySource)

Initializes a new Update instance for the specified data source using the specified user connection.

Declaration
public Update(UserConnection userConnection, ModifyQuerySource source)
Parameters
Type Name Description
UserConnection userConnection

User connection.

ModifyQuerySource source

Data source.

Properties

ColumnValues

Collection of values of the query columns.

Declaration
public ModifyQueryColumnValueCollection ColumnValues { get; }
Property Value
Type Description
ModifyQueryColumnValueCollection

Source

The query data source.

Declaration
public ModifyQuerySource Source { get; set; }
Property Value
Type Description
ModifyQuerySource

Methods

BuildSqlText(StringBuilder)

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

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

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

Overrides
Query.BuildSqlText(StringBuilder)

Clone()

Creates the clone of the current Update instance.

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

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

Overrides
Query.Clone()

GetSqlText()

Returns the SQL text of the current query.

Declaration
public override string GetSqlText()
Returns
Type Description
System.String

The SQL text of the current query.

Overrides
Query.GetSqlText()

GetUsingParameters()

Gets the collection of the query parameters.

Declaration
public override QueryParameterCollection GetUsingParameters()
Returns
Type Description
QueryParameterCollection

Collection of the query parameters.

Overrides
Query.GetUsingParameters()

Set(String, IQueryColumnExpressionConvertible)

Adds a SET clause to the current query to assign to the column with the specified alias the passed expression.

Declaration
public Update Set(string sourceColumnAlias, IQueryColumnExpressionConvertible expression)
Parameters
Type Name Description
System.String sourceColumnAlias

The alias of the column.

IQueryColumnExpressionConvertible expression

Expression.

Returns
Type Description
Update

The current Update instance.

Set(String, Query)

Adds a SET clause to the current query to assign an expression to a column with a specified alias for a passed arbitrary subquery.

Declaration
public Update Set(string sourceColumnAlias, Query subSelectQuery)
Parameters
Type Name Description
System.String sourceColumnAlias

The alias of the column.

Query subSelectQuery

Random subquery.

Returns
Type Description
Update

The current Update instance.

Set(String, QueryColumnExpression)

Adds a SET clause to the current query to assign to the column with the specified alias the passed column expression.

Declaration
public Update Set(string sourceColumnAlias, QueryColumnExpression columnExpression)
Parameters
Type Name Description
System.String sourceColumnAlias

The alias of the column.

QueryColumnExpression columnExpression

The column expression.

Returns
Type Description
Update

The current Update instance.

Set(String, QueryParameter)

Adds a SET clause to the current query to assign to the column with the specified alias the passed parameter.

Declaration
public Update Set(string sourceColumnAlias, QueryParameter parameter)
Parameters
Type Name Description
System.String sourceColumnAlias

The alias of the column.

QueryParameter parameter

The query parameter.

Returns
Type Description
Update

The current Update instance.

Set(String, Select)

In the current query, adds the SET statement that assigns the expression for the passed-in select subquery to the column with the specified alias.

Declaration
public Update Set(string sourceColumnAlias, Select subSelect)
Parameters
Type Name Description
System.String sourceColumnAlias

The alias of the column.

Select subSelect

The select subquery

Returns
Type Description
Update

The current Update instance.

Implements

IParametrizedQuery
ISqlGenerating
ICacheableQuery
System.ICloneable
IDBCommand

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)
HintsHelper.WithHints(Update, BaseHint[])
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