Aracılığıyla paylaş


RelationalModelExtensions.AddDbFunction Yöntem

Tanım

Aşırı Yüklemeler

AddDbFunction(IMutableModel, MethodInfo)

Verilen yönteme eşlenmiş bir IMutableDbFunction oluşturur.

AddDbFunction(IConventionModel, MethodInfo, Boolean)

Verilen yönteme eşlenmiş bir işlev oluşturur.

AddDbFunction(IMutableModel, String, Type)

bir işlev oluşturur.

AddDbFunction(IConventionModel, String, Type, Boolean)

bir işlev oluşturur.

AddDbFunction(IMutableModel, MethodInfo)

Verilen yönteme eşlenmiş bir IMutableDbFunction oluşturur.

public static Microsoft.EntityFrameworkCore.Metadata.Internal.DbFunction AddDbFunction (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, System.Reflection.MethodInfo methodInfo);
public static Microsoft.EntityFrameworkCore.Metadata.IMutableDbFunction AddDbFunction (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, System.Reflection.MethodInfo methodInfo);
static member AddDbFunction : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * System.Reflection.MethodInfo -> Microsoft.EntityFrameworkCore.Metadata.Internal.DbFunction
static member AddDbFunction : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * System.Reflection.MethodInfo -> Microsoft.EntityFrameworkCore.Metadata.IMutableDbFunction
<Extension()>
Public Function AddDbFunction (model As IMutableModel, methodInfo As MethodInfo) As DbFunction
<Extension()>
Public Function AddDbFunction (model As IMutableModel, methodInfo As MethodInfo) As IMutableDbFunction

Parametreler

model
IMutableModel

İşlevin ekleneceği model.

methodInfo
MethodInfo

MethodInfo işlevine eşlenen yöntemi için.

Döndürülenler

Microsoft.EntityFrameworkCore.Metadata.Internal.DbFunction

Yeni IMutableDbFunction.

Şunlara uygulanır

AddDbFunction(IConventionModel, MethodInfo, Boolean)

Verilen yönteme eşlenmiş bir işlev oluşturur.

public static Microsoft.EntityFrameworkCore.Metadata.IConventionDbFunction AddDbFunction (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, System.Reflection.MethodInfo methodInfo, bool fromDataAnnotation = false);
static member AddDbFunction : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * System.Reflection.MethodInfo * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionDbFunction
<Extension()>
Public Function AddDbFunction (model As IConventionModel, methodInfo As MethodInfo, Optional fromDataAnnotation As Boolean = false) As IConventionDbFunction

Parametreler

model
IConventionModel

İşlevin ekleneceği model.

methodInfo
MethodInfo

MethodInfo işlevine eşlenen yöntemi için.

fromDataAnnotation
Boolean

Yapılandırmanın bir veri ek açıklaması kullanılarak belirtilip belirtilmedidiğini gösterir.

Döndürülenler

Yeni işlev.

Şunlara uygulanır

AddDbFunction(IMutableModel, String, Type)

bir işlev oluşturur.

public static Microsoft.EntityFrameworkCore.Metadata.IMutableDbFunction AddDbFunction (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, string name, Type returnType);
static member AddDbFunction : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * string * Type -> Microsoft.EntityFrameworkCore.Metadata.IMutableDbFunction
<Extension()>
Public Function AddDbFunction (model As IMutableModel, name As String, returnType As Type) As IMutableDbFunction

Parametreler

model
IMutableModel

İşlevin ekleneceği model.

name
String

İşlevin model adı.

returnType
Type

İşlev dönüş türü.

Döndürülenler

Yeni işlev.

Şunlara uygulanır

AddDbFunction(IConventionModel, String, Type, Boolean)

bir işlev oluşturur.

public static Microsoft.EntityFrameworkCore.Metadata.IConventionDbFunction AddDbFunction (this Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, string name, Type returnType, bool fromDataAnnotation = false);
static member AddDbFunction : Microsoft.EntityFrameworkCore.Metadata.IConventionModel * string * Type * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionDbFunction
<Extension()>
Public Function AddDbFunction (model As IConventionModel, name As String, returnType As Type, Optional fromDataAnnotation As Boolean = false) As IConventionDbFunction

Parametreler

model
IConventionModel

İşlevin ekleneceği model.

name
String

İşlevin model adı.

returnType
Type

İşlev dönüş türü.

fromDataAnnotation
Boolean

Yapılandırmanın bir veri ek açıklaması kullanılarak belirtilip belirtilmedidiğini gösterir.

Döndürülenler

Yeni işlev.

Şunlara uygulanır