Class Delete
Query to delete data.
Inherited Members
Namespace: Terrasoft.Core.DB
Assembly: Terrasoft.Core.dll
Syntax
public class Delete : Query, IParametrizedQuery, ISqlGenerating, ICacheableQuery, ICloneable, IDBCommand
Constructors
Delete(Delete)
Initializes a new Delete instance that is a clone of the passed-in query.
Declaration
public Delete(Delete source)
Parameters
Type | Name | Description |
---|---|---|
Delete | source | The query to delete whose clone is being created. |
Delete(UserConnection)
Initializes a new Delete instance, using the specified user connection.
Declaration
public Delete(UserConnection userConnection)
Parameters
Type | Name | Description |
---|---|---|
UserConnection | userConnection | User connection. |
Properties
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
Clone()
Creates the clone of the current Delete instance.
Declaration
public override object Clone()
Returns
Type | Description |
---|---|
System.Object | A new Delete instance that is a clone of the current instance. |
Overrides
From(String)
In the current query, adds the schema with the specified name as the data source.
Declaration
public Delete From(string schemaName)
Parameters
Type | Name | Description |
---|---|---|
System.String | schemaName | Name of the schema. |
Returns
Type | Description |
---|---|
Delete | The current Delete instance. |
From(ModifyQuerySource)
In the current query, adds the specified source as the data source.
Declaration
public Delete From(ModifyQuerySource source)
Parameters
Type | Name | Description |
---|---|---|
ModifyQuerySource | source | Data source. |
Returns
Type | Description |
---|---|
Delete | The current Delete instance. |
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. |