Show / Hide Table of Contents

Class Update

Class representing the SQL update Statement

Inheritance
Object
SqlCommand
PrivateSave
Update
Implements
ISoDataLookup
ISentryIgnorable
ICloneable
Inherited Members
PrivateSave.GetTableInfos()
PrivateSave.CloneToBasicUpdatingQuery()
PrivateSave.GetKnownFields()
PrivateSave.GetFieldValue(FieldInfo)
PrivateSave.GetPersistedFieldValue(FieldInfo)
PrivateSave.IsPersistedFieldValueKnown(FieldInfo)
PrivateSave.IsGhostField(FieldInfo)
PrivateSave.BeginIgnoreSentryCheck()
PrivateSave.EndIgnoreSentryCheck()
PrivateSave.IsSentryIgnored
PrivateSave.OnUpdateField
SqlCommand.Origin
SqlCommand.AddIgnoreAutoSentryTableInfo(TableInfo)
SqlCommand.AddIgnoreAutoSentryTableInfo(IEnumerable<TableInfo>)
SqlCommand.RemoveIgnoreAutoSentryTableInfo(TableInfo)
SqlCommand.ClearIgnoreAutoSentryTableInfos()
SqlCommand.IsAutoSentryIgnoredOnTableInfo(TableInfo)
SqlCommand.GetPrivateSaves()
SqlCommand.GetInserts()
SqlCommand.GetUpdates()
SqlCommand.GetDeletes()
SqlCommand.GetSelect()
SqlCommand.AutoSentryIgnoredTables
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: SuperOffice.Data.SQL
Assembly: SoDataBase.dll
Syntax
public sealed class Update : PrivateSave, ISoDataLookup, ISentryIgnorable, ICloneable

Properties

FieldValuePairs

The returned fields from the SELECT statement.

Declaration
public ArgumentParameterCollection FieldValuePairs { get; set; }
Property Value
Type Description
ArgumentParameterCollection

InnerFieldValuePairs

Returns ArgumentParameterCollection that is a container for the fields and values that belong to the current sql-command.

Declaration
protected override ArgumentParameterCollection InnerFieldValuePairs { get; }
Property Value
Type Description
ArgumentParameterCollection
Overrides
PrivateSave.InnerFieldValuePairs

InnerPrimaryKey

Gets the primary key needed to decide which specific row to alter with the current sql-command.

Declaration
protected override FieldInfo InnerPrimaryKey { get; }
Property Value
Type Description
FieldInfo
Overrides
PrivateSave.InnerPrimaryKey

InnerPrimaryKeyValue

The actual value the primary key must have.

Declaration
protected override Parameter InnerPrimaryKeyValue { get; }
Property Value
Type Description
Parameter

The inner primary key value.

Overrides
PrivateSave.InnerPrimaryKeyValue

SqlType

Returns SqlType.IsUpdate.

Declaration
public override SqlType SqlType { get; }
Property Value
Type Description
SqlType
Overrides
SqlCommand.SqlType

Methods

Clone()

Cloning function that returns a hybrid deep/shallow copy

Declaration
public object Clone()
Returns
Type Description
Object

A new object that is a copy of this instance.

Remarks

This cloning function uses the Clone() function and is subject to the same assumptions and limitations. TableInfo/FieldInfo objects are not deep copied, and you do not get copies of the values of BLOB object parameters.

SetPrimaryKey(FieldInfo)

Will set the primary key for the update-command. Will throw an exception if the value isn't FieldInfo and primary key.

Declaration
public void SetPrimaryKey(FieldInfo field)
Parameters
Type Name Description
FieldInfo field

The FieldInfo primary key

SetPrimaryKeyValue(Parameter)

Will set the value for the primary key. Will throw an exception if the value isn't an integer.

Declaration
public void SetPrimaryKeyValue(Parameter primaryValue)
Parameters
Type Name Description
Parameter primaryValue

The value, represented as a Parameter.

ToString()

String output.

Declaration
public override string ToString()
Returns
Type Description
String

UPDATE ... (...) WHERE ...

Overrides
Object.ToString()

Implements

ISoDataLookup
ISentryIgnorable
System.ICloneable

Extension Methods

EnumUtil.MapEnums<From, To>(From)
QueryExectionExtensions.ExecuteReader(SqlCommand, Boolean)
QueryExectionExtensions.ExecuteScalar<T>(SqlCommand)
QueryExectionExtensions.ExecuteNonQuery(SqlCommand)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top