ISqlExpressionFactory.Fragment(String) Method

Definition

Creates a new SqlExpression which represents a SQL token.

C#
public Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlFragmentExpression Fragment (string sql);
C#
public Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression Fragment (string sql);

Parameters

sql
String

A string token to print in SQL tree.

Returns

An expression representing a SQL token.

Applies to

Product Versions
Entity Framework Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0