Bagikan melalui


RelationalModelBuilderExtensions.HasDbFunction Metode

Definisi

Overload

HasDbFunction(ModelBuilder, MethodInfo)

Mengonfigurasi fungsi database saat menargetkan database relasional.

HasDbFunction(IConventionModelBuilder, MethodInfo, Boolean)

Mengonfigurasi fungsi database relasional.

HasDbFunction(ModelBuilder, MethodInfo, Action<DbFunctionBuilder>)

Mengonfigurasi fungsi database saat menargetkan database relasional.

HasDbFunction(IConventionModelBuilder, String, Type, Boolean)

Mengonfigurasi fungsi database relasional.

HasDbFunction<TResult>(ModelBuilder, Expression<Func<TResult>>)

Mengonfigurasi fungsi database saat menargetkan database relasional.

HasDbFunction(ModelBuilder, MethodInfo)

Sumber:
RelationalModelBuilderExtensions.cs
Sumber:
RelationalModelBuilderExtensions.cs
Sumber:
RelationalModelBuilderExtensions.cs
Sumber:
RelationalModelBuilderExtensions.cs
Sumber:
RelationalModelBuilderExtensions.cs
Sumber:
RelationalModelBuilderExtensions.cs
Sumber:
RelationalModelBuilderExtensions.cs
Sumber:
RelationalModelBuilderExtensions.cs
Sumber:
RelationalModelBuilderExtensions.cs

Mengonfigurasi fungsi database saat menargetkan database relasional.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.DbFunctionBuilder HasDbFunction (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, System.Reflection.MethodInfo methodInfo);
static member HasDbFunction : Microsoft.EntityFrameworkCore.ModelBuilder * System.Reflection.MethodInfo -> Microsoft.EntityFrameworkCore.Metadata.Builders.DbFunctionBuilder
<Extension()>
Public Function HasDbFunction (modelBuilder As ModelBuilder, methodInfo As MethodInfo) As DbFunctionBuilder

Parameter

modelBuilder
ModelBuilder

Pembuat model.

methodInfo
MethodInfo

MethodInfo yang digunakan dbFunction ini.

Mengembalikan

Penyusun untuk mengonfigurasi fungsi lebih lanjut.

Keterangan

Lihat Fungsi database untuk informasi dan contoh selengkapnya.

Berlaku untuk

HasDbFunction(IConventionModelBuilder, MethodInfo, Boolean)

Sumber:
RelationalModelBuilderExtensions.cs
Sumber:
RelationalModelBuilderExtensions.cs
Sumber:
RelationalModelBuilderExtensions.cs
Sumber:
RelationalModelBuilderExtensions.cs
Sumber:
RelationalModelBuilderExtensions.cs
Sumber:
RelationalModelBuilderExtensions.cs
Sumber:
RelationalModelBuilderExtensions.cs

Mengonfigurasi fungsi database relasional.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionDbFunctionBuilder HasDbFunction (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder modelBuilder, System.Reflection.MethodInfo methodInfo, bool fromDataAnnotation = false);
static member HasDbFunction : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder * System.Reflection.MethodInfo * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionDbFunctionBuilder
<Extension()>
Public Function HasDbFunction (modelBuilder As IConventionModelBuilder, methodInfo As MethodInfo, Optional fromDataAnnotation As Boolean = false) As IConventionDbFunctionBuilder

Parameter

modelBuilder
IConventionModelBuilder

Pembuat model.

methodInfo
MethodInfo

Metode yang digunakan fungsi ini.

fromDataAnnotation
Boolean

Menunjukkan apakah konfigurasi ditentukan menggunakan anotasi data.

Mengembalikan

Penyusun untuk mengonfigurasi fungsi lebih lanjut.

Keterangan

Lihat Fungsi database untuk informasi dan contoh selengkapnya.

Berlaku untuk

HasDbFunction(ModelBuilder, MethodInfo, Action<DbFunctionBuilder>)

Sumber:
RelationalModelBuilderExtensions.cs
Sumber:
RelationalModelBuilderExtensions.cs
Sumber:
RelationalModelBuilderExtensions.cs
Sumber:
RelationalModelBuilderExtensions.cs
Sumber:
RelationalModelBuilderExtensions.cs
Sumber:
RelationalModelBuilderExtensions.cs
Sumber:
RelationalModelBuilderExtensions.cs
Sumber:
RelationalModelBuilderExtensions.cs
Sumber:
RelationalModelBuilderExtensions.cs

Mengonfigurasi fungsi database saat menargetkan database relasional.

public static Microsoft.EntityFrameworkCore.ModelBuilder HasDbFunction (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, System.Reflection.MethodInfo methodInfo, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.DbFunctionBuilder> builderAction);
static member HasDbFunction : Microsoft.EntityFrameworkCore.ModelBuilder * System.Reflection.MethodInfo * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.DbFunctionBuilder> -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function HasDbFunction (modelBuilder As ModelBuilder, methodInfo As MethodInfo, builderAction As Action(Of DbFunctionBuilder)) As ModelBuilder

Parameter

modelBuilder
ModelBuilder

Pembuat model.

methodInfo
MethodInfo

MethodInfo yang digunakan dbFunction ini.

builderAction
Action<DbFunctionBuilder>

Tindakan yang melakukan konfigurasi urutan.

Mengembalikan

Penyusun untuk mengonfigurasi fungsi lebih lanjut.

Keterangan

Lihat Fungsi database untuk informasi dan contoh selengkapnya.

Berlaku untuk

HasDbFunction(IConventionModelBuilder, String, Type, Boolean)

Sumber:
RelationalModelBuilderExtensions.cs
Sumber:
RelationalModelBuilderExtensions.cs
Sumber:
RelationalModelBuilderExtensions.cs
Sumber:
RelationalModelBuilderExtensions.cs
Sumber:
RelationalModelBuilderExtensions.cs

Mengonfigurasi fungsi database relasional.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionDbFunctionBuilder HasDbFunction (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder modelBuilder, string name, Type returnType, bool fromDataAnnotation = false);
static member HasDbFunction : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder * string * Type * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionDbFunctionBuilder
<Extension()>
Public Function HasDbFunction (modelBuilder As IConventionModelBuilder, name As String, returnType As Type, Optional fromDataAnnotation As Boolean = false) As IConventionDbFunctionBuilder

Parameter

modelBuilder
IConventionModelBuilder

Pembuat model.

name
String

Nama fungsi.

returnType
Type

Jenis pengembalian fungsi.

fromDataAnnotation
Boolean

Menunjukkan apakah konfigurasi ditentukan menggunakan anotasi data.

Mengembalikan

Penyusun untuk mengonfigurasi fungsi lebih lanjut.

Keterangan

Lihat Fungsi database untuk informasi dan contoh selengkapnya.

Berlaku untuk

HasDbFunction<TResult>(ModelBuilder, Expression<Func<TResult>>)

Sumber:
RelationalModelBuilderExtensions.cs
Sumber:
RelationalModelBuilderExtensions.cs
Sumber:
RelationalModelBuilderExtensions.cs
Sumber:
RelationalModelBuilderExtensions.cs
Sumber:
RelationalModelBuilderExtensions.cs
Sumber:
RelationalModelBuilderExtensions.cs
Sumber:
RelationalModelBuilderExtensions.cs
Sumber:
RelationalModelBuilderExtensions.cs
Sumber:
RelationalModelBuilderExtensions.cs

Mengonfigurasi fungsi database saat menargetkan database relasional.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.DbFunctionBuilder HasDbFunction<TResult> (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, System.Linq.Expressions.Expression<Func<TResult>> expression);
static member HasDbFunction : Microsoft.EntityFrameworkCore.ModelBuilder * System.Linq.Expressions.Expression<Func<'Result>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.DbFunctionBuilder
<Extension()>
Public Function HasDbFunction(Of TResult) (modelBuilder As ModelBuilder, expression As Expression(Of Func(Of TResult))) As DbFunctionBuilder

Jenis parameter

TResult

Parameter

modelBuilder
ModelBuilder

Pembuat model.

expression
Expression<Func<TResult>>

Metode yang digunakan dbFunction ini.

Mengembalikan

Penyusun untuk mengonfigurasi fungsi lebih lanjut.

Keterangan

Lihat Fungsi database untuk informasi dan contoh selengkapnya.

Berlaku untuk