Sdílet prostřednictvím


ISqlExpressionFactory.Function Metoda

Definice

Přetížení

Function(String, Type, RelationalTypeMapping)
Zastaralé.

Vytvoří nový SqlFunctionExpression , který představuje volání funkce ve stromu SQL.

Function(SqlExpression, String, Type, RelationalTypeMapping)
Zastaralé.

Vytvoří nový SqlFunctionExpression , který představuje volání funkce ve stromu SQL.

Function(String, IEnumerable<SqlExpression>, Type, RelationalTypeMapping)
Zastaralé.

Vytvoří nový SqlFunctionExpression , který představuje volání funkce ve stromu SQL.

Function(String, String, Type, RelationalTypeMapping)
Zastaralé.

Vytvoří nový SqlFunctionExpression , který představuje volání funkce ve stromu SQL.

Function(SqlExpression, String, IEnumerable<SqlExpression>, Type, RelationalTypeMapping)
Zastaralé.

Vytvoří nový SqlFunctionExpression , který představuje volání funkce ve stromu SQL.

Function(String, String, IEnumerable<SqlExpression>, Type, RelationalTypeMapping)
Zastaralé.

Vytvoří nový SqlFunctionExpression , který představuje volání funkce ve stromu SQL.

Function(String, IEnumerable<SqlExpression>, Boolean, IEnumerable<Boolean>, Type, RelationalTypeMapping)

Vytvoří nový SqlFunctionExpression , který představuje volání funkce ve stromu SQL.

Function(String, String, IEnumerable<SqlExpression>, Boolean, IEnumerable<Boolean>, Type, RelationalTypeMapping)

Vytvoří nový SqlFunctionExpression , který představuje volání funkce ve stromu SQL.

Function(SqlExpression, String, IEnumerable<SqlExpression>, Boolean, Boolean, IEnumerable<Boolean>, Type, RelationalTypeMapping)

Vytvoří nový SqlFunctionExpression , který představuje volání funkce ve stromu SQL.

Function(String, Type, RelationalTypeMapping)

Upozornění

Use NiladicFunction method.

Vytvoří nový SqlFunctionExpression , který představuje volání funkce ve stromu SQL.

public Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlFunctionExpression Function (string name, Type returnType, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping typeMapping = default);
[System.Obsolete("Use NiladicFunction method.")]
public Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlFunctionExpression Function (string name, Type returnType, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping typeMapping = default);
[System.Obsolete("Use NiladicFunction method.")]
public Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlFunctionExpression Function (string name, Type returnType, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping? typeMapping = default);
abstract member Function : string * Type * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlFunctionExpression
[<System.Obsolete("Use NiladicFunction method.")>]
abstract member Function : string * Type * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlFunctionExpression
Public Function Function (name As String, returnType As Type, Optional typeMapping As RelationalTypeMapping = Nothing) As SqlFunctionExpression

Parametry

name
String

Název funkce.

returnType
Type

Výraz Type .

typeMapping
RelationalTypeMapping

Přidružená RelationalTypeMapping k výrazu.

Návraty

Výraz představující volání funkce ve stromu SQL.

Atributy

Platí pro

Function(SqlExpression, String, Type, RelationalTypeMapping)

Upozornění

Use NiladicFunction method.

Vytvoří nový SqlFunctionExpression , který představuje volání funkce ve stromu SQL.

public Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlFunctionExpression Function (Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression instance, string name, Type returnType, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping typeMapping = default);
[System.Obsolete("Use NiladicFunction method.")]
public Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlFunctionExpression Function (Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression instance, string name, Type returnType, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping typeMapping = default);
[System.Obsolete("Use NiladicFunction method.")]
public Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlFunctionExpression Function (Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression instance, string name, Type returnType, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping? typeMapping = default);
abstract member Function : Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression * string * Type * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlFunctionExpression
[<System.Obsolete("Use NiladicFunction method.")>]
abstract member Function : Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression * string * Type * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlFunctionExpression
Public Function Function (instance As SqlExpression, name As String, returnType As Type, Optional typeMapping As RelationalTypeMapping = Nothing) As SqlFunctionExpression

Parametry

instance
SqlExpression

Výraz, na který se funkce použije.

name
String

Název funkce.

returnType
Type

Výraz Type .

typeMapping
RelationalTypeMapping

Přidružená RelationalTypeMapping k výrazu.

Návraty

Výraz představující volání funkce ve stromu SQL.

Atributy

Platí pro

Function(String, IEnumerable<SqlExpression>, Type, RelationalTypeMapping)

Upozornění

Use overload that explicitly specifies value for 'argumentsPropagateNullability' argument.

Vytvoří nový SqlFunctionExpression , který představuje volání funkce ve stromu SQL.

public Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlFunctionExpression Function (string name, System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression> arguments, Type returnType, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping typeMapping = default);
[System.Obsolete("Use overload that explicitly specifies value for 'argumentsPropagateNullability' argument.")]
public Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlFunctionExpression Function (string name, System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression> arguments, Type returnType, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping typeMapping = default);
[System.Obsolete("Use overload that explicitly specifies value for 'argumentsPropagateNullability' argument.")]
public Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlFunctionExpression Function (string name, System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression> arguments, Type returnType, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping? typeMapping = default);
abstract member Function : string * seq<Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression> * Type * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlFunctionExpression
[<System.Obsolete("Use overload that explicitly specifies value for 'argumentsPropagateNullability' argument.")>]
abstract member Function : string * seq<Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression> * Type * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlFunctionExpression
Public Function Function (name As String, arguments As IEnumerable(Of SqlExpression), returnType As Type, Optional typeMapping As RelationalTypeMapping = Nothing) As SqlFunctionExpression

Parametry

name
String

Název funkce.

arguments
IEnumerable<SqlExpression>

Argumenty funkce.

returnType
Type

Výraz Type .

typeMapping
RelationalTypeMapping

Přidružená RelationalTypeMapping k výrazu.

Návraty

Výraz představující volání funkce ve stromu SQL.

Atributy

Platí pro

Function(String, String, Type, RelationalTypeMapping)

Upozornění

Use NiladicFunction method.

Vytvoří nový SqlFunctionExpression , který představuje volání funkce ve stromu SQL.

public Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlFunctionExpression Function (string schema, string name, Type returnType, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping typeMapping = default);
[System.Obsolete("Use NiladicFunction method.")]
public Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlFunctionExpression Function (string schema, string name, Type returnType, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping typeMapping = default);
[System.Obsolete("Use NiladicFunction method.")]
public Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlFunctionExpression Function (string schema, string name, Type returnType, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping? typeMapping = default);
abstract member Function : string * string * Type * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlFunctionExpression
[<System.Obsolete("Use NiladicFunction method.")>]
abstract member Function : string * string * Type * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlFunctionExpression
Public Function Function (schema As String, name As String, returnType As Type, Optional typeMapping As RelationalTypeMapping = Nothing) As SqlFunctionExpression

Parametry

schema
String

Schéma, ve kterém je funkce definována.

name
String

Název funkce.

returnType
Type

Výraz Type .

typeMapping
RelationalTypeMapping

Přidružená RelationalTypeMapping k výrazu.

Návraty

Výraz představující volání funkce ve stromu SQL.

Atributy

Platí pro

Function(SqlExpression, String, IEnumerable<SqlExpression>, Type, RelationalTypeMapping)

Upozornění

Use overload that explicitly specifies value for 'instancePropagatesNullability' and 'argumentsPropagateNullability' arguments.

Vytvoří nový SqlFunctionExpression , který představuje volání funkce ve stromu SQL.

public Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlFunctionExpression Function (Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression instance, string name, System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression> arguments, Type returnType, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping typeMapping = default);
[System.Obsolete("Use overload that explicitly specifies value for 'instancePropagatesNullability' and 'argumentsPropagateNullability' arguments.")]
public Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlFunctionExpression Function (Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression instance, string name, System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression> arguments, Type returnType, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping typeMapping = default);
[System.Obsolete("Use overload that explicitly specifies value for 'instancePropagatesNullability' and 'argumentsPropagateNullability' arguments.")]
public Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlFunctionExpression Function (Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression instance, string name, System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression> arguments, Type returnType, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping? typeMapping = default);
abstract member Function : Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression * string * seq<Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression> * Type * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlFunctionExpression
[<System.Obsolete("Use overload that explicitly specifies value for 'instancePropagatesNullability' and 'argumentsPropagateNullability' arguments.")>]
abstract member Function : Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression * string * seq<Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression> * Type * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlFunctionExpression
Public Function Function (instance As SqlExpression, name As String, arguments As IEnumerable(Of SqlExpression), returnType As Type, Optional typeMapping As RelationalTypeMapping = Nothing) As SqlFunctionExpression

Parametry

instance
SqlExpression

Výraz, na který se funkce použije.

name
String

Název funkce.

arguments
IEnumerable<SqlExpression>

Argumenty funkce.

returnType
Type

Výraz Type .

typeMapping
RelationalTypeMapping

Přidružená RelationalTypeMapping k výrazu.

Návraty

Výraz představující volání funkce ve stromu SQL.

Atributy

Platí pro

Function(String, String, IEnumerable<SqlExpression>, Type, RelationalTypeMapping)

Upozornění

Use overload that explicitly specifies value for 'argumentsPropagateNullability' argument.

Vytvoří nový SqlFunctionExpression , který představuje volání funkce ve stromu SQL.

public Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlFunctionExpression Function (string schema, string name, System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression> arguments, Type returnType, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping typeMapping = default);
[System.Obsolete("Use overload that explicitly specifies value for 'argumentsPropagateNullability' argument.")]
public Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlFunctionExpression Function (string schema, string name, System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression> arguments, Type returnType, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping typeMapping = default);
[System.Obsolete("Use overload that explicitly specifies value for 'argumentsPropagateNullability' argument.")]
public Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlFunctionExpression Function (string? schema, string name, System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression> arguments, Type returnType, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping? typeMapping = default);
abstract member Function : string * string * seq<Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression> * Type * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlFunctionExpression
[<System.Obsolete("Use overload that explicitly specifies value for 'argumentsPropagateNullability' argument.")>]
abstract member Function : string * string * seq<Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression> * Type * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlFunctionExpression
Public Function Function (schema As String, name As String, arguments As IEnumerable(Of SqlExpression), returnType As Type, Optional typeMapping As RelationalTypeMapping = Nothing) As SqlFunctionExpression

Parametry

schema
String

Schéma, ve kterém je funkce definována.

name
String

Název funkce.

arguments
IEnumerable<SqlExpression>

Argumenty funkce.

returnType
Type

Výraz Type .

typeMapping
RelationalTypeMapping

Přidružená RelationalTypeMapping k výrazu.

Návraty

Výraz představující volání funkce ve stromu SQL.

Atributy

Platí pro

Function(String, IEnumerable<SqlExpression>, Boolean, IEnumerable<Boolean>, Type, RelationalTypeMapping)

Vytvoří nový SqlFunctionExpression , který představuje volání funkce ve stromu SQL.

public Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlFunctionExpression Function (string name, System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression> arguments, bool nullable, System.Collections.Generic.IEnumerable<bool> argumentsPropagateNullability, Type returnType, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping typeMapping = default);
public Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlFunctionExpression Function (string name, System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression> arguments, bool nullable, System.Collections.Generic.IEnumerable<bool> argumentsPropagateNullability, Type returnType, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping? typeMapping = default);
abstract member Function : string * seq<Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression> * bool * seq<bool> * Type * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlFunctionExpression
Public Function Function (name As String, arguments As IEnumerable(Of SqlExpression), nullable As Boolean, argumentsPropagateNullability As IEnumerable(Of Boolean), returnType As Type, Optional typeMapping As RelationalTypeMapping = Nothing) As SqlFunctionExpression

Parametry

name
String

Název funkce.

arguments
IEnumerable<SqlExpression>

Argumenty funkce.

nullable
Boolean

Logická hodnota označující, zda tato funkce může vrátit hodnotu null.

argumentsPropagateNullability
IEnumerable<Boolean>

Seznam logických hodnot označujících, jestli jednotlivé argumenty šíří hodnotu null do výsledku.

returnType
Type

Výraz Type .

typeMapping
RelationalTypeMapping

Přidružená RelationalTypeMapping k výrazu.

Návraty

Výraz představující volání funkce ve stromu SQL.

Platí pro

Function(String, String, IEnumerable<SqlExpression>, Boolean, IEnumerable<Boolean>, Type, RelationalTypeMapping)

Vytvoří nový SqlFunctionExpression , který představuje volání funkce ve stromu SQL.

public Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlFunctionExpression Function (string schema, string name, System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression> arguments, bool nullable, System.Collections.Generic.IEnumerable<bool> argumentsPropagateNullability, Type returnType, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping typeMapping = default);
public Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlFunctionExpression Function (string? schema, string name, System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression> arguments, bool nullable, System.Collections.Generic.IEnumerable<bool> argumentsPropagateNullability, Type returnType, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping? typeMapping = default);
abstract member Function : string * string * seq<Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression> * bool * seq<bool> * Type * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlFunctionExpression
Public Function Function (schema As String, name As String, arguments As IEnumerable(Of SqlExpression), nullable As Boolean, argumentsPropagateNullability As IEnumerable(Of Boolean), returnType As Type, Optional typeMapping As RelationalTypeMapping = Nothing) As SqlFunctionExpression

Parametry

schema
String

Schéma, ve kterém je funkce definována.

name
String

Název funkce.

arguments
IEnumerable<SqlExpression>

Argumenty funkce.

nullable
Boolean

Logická hodnota označující, zda tato funkce může vrátit hodnotu null.

argumentsPropagateNullability
IEnumerable<Boolean>

Seznam logických hodnot označujících, jestli jednotlivé argumenty šíří hodnotu null do výsledku.

returnType
Type

Výraz Type .

typeMapping
RelationalTypeMapping

Přidružená RelationalTypeMapping k výrazu.

Návraty

Výraz představující volání funkce ve stromu SQL.

Platí pro

Function(SqlExpression, String, IEnumerable<SqlExpression>, Boolean, Boolean, IEnumerable<Boolean>, Type, RelationalTypeMapping)

Vytvoří nový SqlFunctionExpression , který představuje volání funkce ve stromu SQL.

public Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlFunctionExpression Function (Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression instance, string name, System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression> arguments, bool nullable, bool instancePropagatesNullability, System.Collections.Generic.IEnumerable<bool> argumentsPropagateNullability, Type returnType, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping typeMapping = default);
public Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlFunctionExpression Function (Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression instance, string name, System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression> arguments, bool nullable, bool instancePropagatesNullability, System.Collections.Generic.IEnumerable<bool> argumentsPropagateNullability, Type returnType, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping? typeMapping = default);
abstract member Function : Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression * string * seq<Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression> * bool * bool * seq<bool> * Type * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping -> Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlFunctionExpression
Public Function Function (instance As SqlExpression, name As String, arguments As IEnumerable(Of SqlExpression), nullable As Boolean, instancePropagatesNullability As Boolean, argumentsPropagateNullability As IEnumerable(Of Boolean), returnType As Type, Optional typeMapping As RelationalTypeMapping = Nothing) As SqlFunctionExpression

Parametry

instance
SqlExpression

Výraz, na který se funkce použije.

name
String

Název funkce.

arguments
IEnumerable<SqlExpression>

Argumenty funkce.

nullable
Boolean

Logická hodnota označující, zda tato funkce může vrátit hodnotu null.

instancePropagatesNullability
Boolean

Hodnota označující, jestli instance rozšíří hodnotu null na výsledek.

argumentsPropagateNullability
IEnumerable<Boolean>

Seznam logických hodnot označujících, jestli jednotlivé argumenty šíří hodnotu null do výsledku.

returnType
Type

Výraz Type .

typeMapping
RelationalTypeMapping

Přidružená RelationalTypeMapping k výrazu.

Návraty

Výraz představující volání funkce ve stromu SQL.

Platí pro