RelationalModelExtensions.AddDbFunction Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
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
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
Entity Framework
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin