RelationalSqlGenerationHelper Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides services to help with generation of SQL commands.
This type is typically used by database providers (and other extensions). It is generally not used in application code.
public class RelationalSqlGenerationHelper : Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper
type RelationalSqlGenerationHelper = class
interface ISqlGenerationHelper
Public Class RelationalSqlGenerationHelper
Implements ISqlGenerationHelper
- Inheritance
-
RelationalSqlGenerationHelper
- Implements
Remarks
The service lifetime is Singleton. This means a single instance is used by many DbContext instances. The implementation must be thread-safe. This service cannot depend on services registered as Scoped.
See Implementation of database providers and extensions for more information and examples.
Constructors
RelationalSqlGenerationHelper() | |
RelationalSqlGenerationHelper(RelationalSqlGenerationHelperDependencies) |
Initializes a new instance of this class. |
Properties
BatchTerminator |
The terminator to be used for batches of SQL statements. |
CommitTransactionStatement |
Gets the SQL for a COMMIT statement. |
DateTimeFormat |
Gets the date time format. |
DateTimeFormatString |
Gets the date time format. |
DateTimeOffsetFormat |
Gets the date time offset format. |
DateTimeOffsetFormatString |
Gets the date time offset format. |
DecimalFormat |
Gets the decimal format. |
DecimalFormatString |
Gets the decimal format. |
Dependencies |
Relational provider-specific dependencies for this service. |
FloatingPointFormatString |
Gets the floating point format. |
SingleLineCommentToken |
The default single-line comment prefix. |
StartTransactionStatement |
Gets the SQL for a START TRANSACTION statement. |
StatementTerminator |
The terminator to be used for SQL statements. |
Methods
DelimitIdentifier(String, String) |
Generates the delimited SQL representation of an identifier (column name, table name, etc.). |
DelimitIdentifier(String) |
Generates the delimited SQL representation of an identifier (column name, table name, etc.). |
DelimitIdentifier(StringBuilder, String, String) |
Writes the delimited SQL representation of an identifier (column name, table name, etc.). |
DelimitIdentifier(StringBuilder, String) |
Writes the delimited SQL representation of an identifier (column name, table name, etc.). |
DelimitJsonPathElement(String) |
Writes the delimited SQL representation of an element in a JSON path. |
EscapeIdentifier(String) |
Generates the escaped SQL representation of an identifier (column name, table name, etc.). |
EscapeIdentifier(StringBuilder, String) |
Writes the escaped SQL representation of an identifier (column name, table name, etc.). |
EscapeJsonPathElement(String) |
Generates the escaped SQL representation of an identifier (column name, table name, etc.). |
EscapeLiteral(String) |
Obsolete.
Generates the escaped SQL representation of a literal value. |
EscapeLiteral(StringBuilder, String) |
Obsolete.
Writes the escaped SQL representation of a literal value. |
GenerateComment(String) |
Generates a SQL comment. |
GenerateCreateSavepointStatement(String) |
Generates an SQL statement which creates a savepoint with the given name. |
GenerateLiteral(Object, RelationalTypeMapping) |
Generates the SQL representation of a literal value. |
GenerateLiteral(StringBuilder, Object, RelationalTypeMapping) |
Writes the SQL representation of a literal value. |
GenerateLiteralValue(Boolean) |
Generates the SQL representation of a literal value. |
GenerateLiteralValue(Byte) |
Generates the SQL representation of a literal value. |
GenerateLiteralValue(Byte[]) |
Generates the SQL representation of a literal value. |
GenerateLiteralValue(Char) |
Generates the SQL representation of a literal value. |
GenerateLiteralValue(DateTime) |
Generates the SQL representation of a literal value. |
GenerateLiteralValue(DateTimeOffset) |
Generates the SQL representation of a literal value. |
GenerateLiteralValue(DbType) |
Generates the SQL representation of a literal value. |
GenerateLiteralValue(Decimal) |
Generates the SQL representation of a literal value. |
GenerateLiteralValue(Double) |
Generates the SQL representation of a literal value. |
GenerateLiteralValue(Enum) |
Generates the SQL representation of a literal value. |
GenerateLiteralValue(Guid) |
Generates the SQL representation of a literal value. |
GenerateLiteralValue(Int16) |
Generates the SQL representation of a literal value. |
GenerateLiteralValue(Int32) |
Generates the SQL representation of a literal value. |
GenerateLiteralValue(Int64) |
Generates the SQL representation of a literal value. |
GenerateLiteralValue(Object) |
Generates the SQL representation of a literal value. |
GenerateLiteralValue(Single) |
Generates the SQL representation of a literal value. |
GenerateLiteralValue(String, RelationalTypeMapping) |
Generates the SQL representation of a literal value. |
GenerateLiteralValue(StringBuilder, Boolean) |
Writes the SQL representation of a literal value. |
GenerateLiteralValue(StringBuilder, Byte) |
Writes the SQL representation of a literal value. |
GenerateLiteralValue(StringBuilder, Byte[]) |
Writes the SQL representation of a literal value. |
GenerateLiteralValue(StringBuilder, Char) |
Writes the SQL representation of a literal value. |
GenerateLiteralValue(StringBuilder, DateTime) |
Writes the SQL representation of a literal value. |
GenerateLiteralValue(StringBuilder, DateTimeOffset) |
Writes the SQL representation of a literal value. |
GenerateLiteralValue(StringBuilder, DbType) |
Writes the SQL representation of a literal value. |
GenerateLiteralValue(StringBuilder, Decimal) |
Writes the SQL representation of a literal value. |
GenerateLiteralValue(StringBuilder, Double) |
Writes the SQL representation of a literal value. |
GenerateLiteralValue(StringBuilder, Enum) |
Writes the SQL representation of a literal value. |
GenerateLiteralValue(StringBuilder, Guid) |
Writes the SQL representation of a literal value. |
GenerateLiteralValue(StringBuilder, Int16) |
Writes the SQL representation of a literal value. |
GenerateLiteralValue(StringBuilder, Int32) |
Writes the SQL representation of a literal value. |
GenerateLiteralValue(StringBuilder, Int64) |
Writes the SQL representation of a literal value. |
GenerateLiteralValue(StringBuilder, Object) |
Writes the SQL representation of a literal value. |
GenerateLiteralValue(StringBuilder, Single) |
Writes the SQL representation of a literal value. |
GenerateLiteralValue(StringBuilder, String, RelationalTypeMapping) |
Writes the SQL representation of a literal value. |
GenerateLiteralValue(StringBuilder, TimeSpan) |
Writes the SQL representation of a literal value. |
GenerateLiteralValue(TimeSpan) |
Generates the SQL representation of a literal value. |
GenerateParameterName(String) |
Generates a valid parameter name for the given candidate name. |
GenerateParameterName(StringBuilder, String) |
Writes a valid parameter name for the given candidate name. |
GenerateParameterNamePlaceholder(String) |
Generates a valid parameter placeholder name for the given candidate name. |
GenerateParameterNamePlaceholder(StringBuilder, String) |
Writes a valid parameter placeholder name for the given candidate name. |
GenerateReleaseSavepointStatement(String) |
Generates an SQL statement which releases a savepoint with the given name. |
GenerateRollbackToSavepointStatement(String) |
Generates an SQL statement which rolls back to a savepoint with the given name. |
Applies to
Entity Framework