ISqlBuilderBase Interface
.NET Standard 2.x
The base interface of ISqlBuilder and ISqlReadOnlyBuilder.
Namespace: SnapObjects.Data
Assembly: SnapObjects.Data.dll
Syntax
public interface ISqlBuilderBase;
Property
| Name | Return Type | Description |
|---|---|---|
| Name | string | Gets the name of the current object. |
| SqlType | SqlStatementType | The base interface of ISqlBuilder and ISqlReadOnlyBuilder. |
| UsedParameters | IReadOnlyDictionary<string, ISqlParameter> | Gets an IReadOnlyDictionary<string, ISqlParameter> object that contains all parameters used in the current object. |
Method
| Name | Return Type | Description |
|---|---|---|
| ToSqlString(DataContext context) | string | Returns the raw SQL string for the corresponding database by the current object. |
| Validate(DataContext context, bool throwError = true) | bool | Validates the raw SQL string for the specified database generated by the current sqlbuilder. |
| ValidateAsync(DataContext context, bool throwError = true) | Task<bool> | Asynchronously validates the raw SQL string for the specified database generated by the current sqlbuilder. |
| ValidateAsync(DataContext context, bool throwError, CancellationToken cancellationToken = default) | Task<bool> | Asynchronously validates the raw SQL string for the specified database generated by the current sqlbuilder. |