Class FormattableSqlStringBuilder
Allows for a safe string interpolated SQL concatenation.
Namespace: Venflow
Assembly: Venflow.dll
Syntax
public class FormattableSqlStringBuilder : object
Constructors
| Improve this Doc View SourceFormattableSqlStringBuilder()
Initializes a new instance of the FormattableSqlStringBuilder class.
Declaration
public FormattableSqlStringBuilder()
Methods
| Improve this Doc View SourceAppend(String)
Appends a copy of the specified SQL to this instance.
Declaration
public void Append(string sql)
Parameters
Type | Name | Description |
---|---|---|
String | sql | The SQL to append. |
Remarks
This method IS NOT string interpolation safe, if you want to use string interpolated SQL use the AppendInterpolated(FormattableString) method.
AppendInterpolated(FormattableString)
Appends a copy of the specified SQL to this instance.
Declaration
public void AppendInterpolated(FormattableString sql)
Parameters
Type | Name | Description |
---|---|---|
FormattableString | sql | The SQL to append. |
Remarks
This method is string interpolation safe.
AppendInterpolatedLine(FormattableString)
Appends a copy of the specified SQL followed by the default line terminator to the end of the current FormattableSqlStringBuilder object.
Declaration
public void AppendInterpolatedLine(FormattableString sql)
Parameters
Type | Name | Description |
---|---|---|
FormattableString | sql | The SQL to append. |
Remarks
This method is string interpolation safe.
AppendLine(String)
Appends a copy of the specified SQL followed by the default line terminator to the end of the current FormattableSqlStringBuilder object.
Declaration
public void AppendLine(string sql)
Parameters
Type | Name | Description |
---|---|---|
String | sql | The SQL to append. |
Remarks
This method IS NOT string interpolation safe, if you want to use string interpolated SQL use the AppendInterpolatedLine(FormattableString) method.