Share via


SqlExpressionFactory.Fragment Method

Definition

Overloads

Name Description
Fragment(String)

Creates a new SqlExpression which represents a SQL token.

Fragment(String, Type, RelationalTypeMapping)

Creates a new SqlExpression which represents a SQL token.

Fragment(String)

Source:
SqlExpressionFactory.cs
Source:
SqlExpressionFactory.cs
Source:
SqlExpressionFactory.cs
Source:
SqlExpressionFactory.cs
Source:
SqlExpressionFactory.cs
Source:
SqlExpressionFactory.cs
Source:
SqlExpressionFactory.cs

Creates a new SqlExpression which represents a SQL token.

public virtual Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlFragmentExpression Fragment(string sql);
public virtual Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression Fragment(string sql);
abstract member Fragment : string -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlFragmentExpression
override this.Fragment : string -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlFragmentExpression
abstract member Fragment : string -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
override this.Fragment : string -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
Public Overridable Function Fragment (sql As String) As SqlFragmentExpression
Public Overridable Function Fragment (sql As String) As SqlExpression

Parameters

sql
String

A string token to print in SQL tree.

Returns

An expression representing a SQL token.

Implements

Applies to

Fragment(String, Type, RelationalTypeMapping)

Source:
SqlExpressionFactory.cs

Creates a new SqlExpression which represents a SQL token.

public virtual Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression Fragment(string sql, Type? type = default, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping? typeMapping = default);
abstract member Fragment : string * Type * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
override this.Fragment : string * Type * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
Public Overridable Function Fragment (sql As String, Optional type As Type = Nothing, Optional typeMapping As RelationalTypeMapping = Nothing) As SqlExpression

Parameters

sql
String

A string token to print in SQL tree.

type
Type

The Type of the expression. Defaults to void.

typeMapping
RelationalTypeMapping

The RelationalTypeMapping associated with the expression.

Returns

An expression representing a SQL token.

Implements

Applies to