Share via


SqlFragmentExpression Constructors

Definition

Overloads

Name Description
SqlFragmentExpression(String)

Creates a new instance of the SqlFragmentExpression class.

SqlFragmentExpression(String, Type, RelationalTypeMapping)

Creates a new instance of the SqlFragmentExpression class.

SqlFragmentExpression(String)

Source:
SqlFragmentExpression.cs
Source:
SqlFragmentExpression.cs
Source:
SqlFragmentExpression.cs
Source:
SqlFragmentExpression.cs
Source:
SqlFragmentExpression.cs
Source:
SqlFragmentExpression.cs

Creates a new instance of the SqlFragmentExpression class.

public SqlFragmentExpression(string sql);
new Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlFragmentExpression : string -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlFragmentExpression
Public Sub New (sql As String)

Parameters

sql
String

A string token to print in SQL tree.

Applies to

SqlFragmentExpression(String, Type, RelationalTypeMapping)

Source:
SqlFragmentExpression.cs

Creates a new instance of the SqlFragmentExpression class.

public SqlFragmentExpression(string sql, Type? type = default, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping? typeMapping = default);
new Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlFragmentExpression : string * Type * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlFragmentExpression
Public Sub New (sql As String, Optional type As Type = Nothing, Optional typeMapping As RelationalTypeMapping = Nothing)

Parameters

sql
String

A string token to print in SQL tree.

type
Type

The Type of the expression. Defaults to object.

typeMapping
RelationalTypeMapping

The RelationalTypeMapping associated with the expression.

Applies to