Partager via


RuntimeDbFunction Constructeur

Définition

Initialise une nouvelle instance de la classe RuntimeDbFunction.

public RuntimeDbFunction (string modelName, Microsoft.EntityFrameworkCore.Metadata.RuntimeModel model, Type returnType, string storeName, string? schema = default, string? storeType = default, System.Reflection.MethodInfo? methodInfo = default, bool scalar = false, bool aggregate = false, bool nullable = false, bool builtIn = false, Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping? typeMapping = default, Func<System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression>,Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression>? translation = default);
new Microsoft.EntityFrameworkCore.Metadata.RuntimeDbFunction : string * Microsoft.EntityFrameworkCore.Metadata.RuntimeModel * Type * string * string * string * System.Reflection.MethodInfo * bool * bool * bool * bool * Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping * Func<System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression>, Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression> -> Microsoft.EntityFrameworkCore.Metadata.RuntimeDbFunction
Public Sub New (modelName As String, model As RuntimeModel, returnType As Type, storeName As String, Optional schema As String = Nothing, Optional storeType As String = Nothing, Optional methodInfo As MethodInfo = Nothing, Optional scalar As Boolean = false, Optional aggregate As Boolean = false, Optional nullable As Boolean = false, Optional builtIn As Boolean = false, Optional typeMapping As RelationalTypeMapping = Nothing, Optional translation As Func(Of IReadOnlyList(Of SqlExpression), SqlExpression) = Nothing)

Paramètres

modelName
String

Nom du modèle.

model
RuntimeModel

Modèle.

returnType
Type

Type de retour.

storeName
String

Nom du magasin.

schema
String

Schéma du magasin.

storeType
String

Type de magasin.

methodInfo
MethodInfo

Mappé MethodInfo.

scalar
Boolean

Indique si le type de retour est scalaire.

aggregate
Boolean

Indique si la fonction est un agrégat.

nullable
Boolean

Indique si la fonction est nullable.

builtIn
Boolean

Indique si la fonction est intégrée.

typeMapping
RelationalTypeMapping

Mappage de type pour la valeur de retour.

translation
Func<IReadOnlyList<SqlExpression>,SqlExpression>

Traduction de fonction.

S’applique à