Compartir a través de


RuntimeDbFunction Constructor

Definición

Inicializa una nueva instancia de la clase 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)

Parámetros

modelName
String

Nombre del modelo.

model
RuntimeModel

Modelo.

returnType
Type

Tipo de valor devuelto.

storeName
String

Nombre del almacén.

schema
String

Esquema de almacén.

storeType
String

Tipo de almacén.

methodInfo
MethodInfo

MethodInfoAsignado.

scalar
Boolean

Si el tipo de valor devuelto es escalar.

aggregate
Boolean

Si la función es un agregado.

nullable
Boolean

Indica si la función acepta valores NULL.

builtIn
Boolean

Si la función está integrada.

typeMapping
RelationalTypeMapping

Asignación de tipos para el valor devuelto.

translation
Func<IReadOnlyList<SqlExpression>,SqlExpression>

Traducción de funciones.

Se aplica a