Class Delete
Class representing the Delete part of the statement.
Inherited Members
Namespace: SuperOffice.Data.SQL
Assembly: SoDataBase.dll
Syntax
public sealed class Delete : 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
Get InnerFieldValuePairs
Declaration
protected override ArgumentParameterCollection InnerFieldValuePairs { get; }
Property Value
Type | Description |
---|---|
ArgumentParameterCollection |
Overrides
InnerPrimaryKey
Overridden primary key for the sql-command.
Declaration
protected override FieldInfo InnerPrimaryKey { get; }
Property Value
Type | Description |
---|---|
FieldInfo |
Overrides
InnerPrimaryKeyValue
Overridden primary key value for the sql-command.
Declaration
protected override Parameter InnerPrimaryKeyValue { get; }
Property Value
Type | Description |
---|---|
Parameter |
Overrides
SqlType
Returns SqlType.IsDelete.
Declaration
public override SqlType SqlType { get; }
Property Value
Type | Description |
---|---|
SqlType |
Overrides
Methods
Clone()
Cloning function that returns a hybrid deep/shallow copy
Declaration
public object Clone()
Returns
Type | Description |
---|---|
object |
SetPrimaryKey(FieldInfo)
Will set the primary key for the delete-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 | DELETE FROM ... WHERE . = ... |