다음을 통해 공유


RelationalModelExtensions.AddDbFunction 메서드

정의

오버로드

AddDbFunction(IMutableModel, MethodInfo)

지정된 메서드에 IMutableDbFunction 매핑된 를 만듭니다.

AddDbFunction(IConventionModel, MethodInfo, Boolean)

지정된 메서드에 매핑된 함수를 만듭니다.

AddDbFunction(IMutableModel, String, Type)

함수를 만듭니다.

AddDbFunction(IConventionModel, String, Type, Boolean)

함수를 만듭니다.

AddDbFunction(IMutableModel, MethodInfo)

Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs

지정된 메서드에 IMutableDbFunction 매핑된 를 만듭니다.

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

매개 변수

model
IMutableModel

함수를 추가할 모델입니다.

methodInfo
MethodInfo

MethodInfo 함수에 매핑되는 메서드의 입니다.

반환

Microsoft.EntityFrameworkCore.Metadata.Internal.DbFunction

IMutableDbFunction입니다.

적용 대상

AddDbFunction(IConventionModel, MethodInfo, Boolean)

Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs

지정된 메서드에 매핑된 함수를 만듭니다.

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

매개 변수

model
IConventionModel

함수를 추가할 모델입니다.

methodInfo
MethodInfo

MethodInfo 함수에 매핑되는 메서드의 입니다.

fromDataAnnotation
Boolean

데이터 주석을 사용하여 구성을 지정했는지 여부를 나타냅니다.

반환

새 함수입니다.

적용 대상

AddDbFunction(IMutableModel, String, Type)

Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs

함수를 만듭니다.

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

매개 변수

model
IMutableModel

함수를 추가할 모델입니다.

name
String

함수의 모델 이름입니다.

returnType
Type

함수 반환 형식입니다.

반환

새 함수입니다.

적용 대상

AddDbFunction(IConventionModel, String, Type, Boolean)

Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs
Source:
RelationalModelExtensions.cs

함수를 만듭니다.

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

매개 변수

model
IConventionModel

함수를 추가할 모델입니다.

name
String

함수의 모델 이름입니다.

returnType
Type

함수 반환 형식입니다.

fromDataAnnotation
Boolean

데이터 주석을 사용하여 구성을 지정했는지 여부를 나타냅니다.

반환

새 함수입니다.

적용 대상