MutableEntityTypeExtensions.GetOrAddProperty Yöntem

Tanım

Aşırı Yüklemeler

GetOrAddProperty(IMutableEntityType, PropertyInfo)

Verilen ada sahip olan özelliği alır veya zaten tanımlı değilse yeni bir tane oluşturur.

GetOrAddProperty(IMutableEntityType, String, Type)

Verilen ada sahip olan özelliği alır veya zaten tanımlı değilse yeni bir tane oluşturur.

GetOrAddProperty(IMutableEntityType, String, Type, Boolean)

Verilen ada sahip olan özelliği alır veya zaten tanımlı değilse yeni bir tane oluşturur.

GetOrAddProperty(IMutableEntityType, PropertyInfo)

Verilen ada sahip olan özelliği alır veya zaten tanımlı değilse yeni bir tane oluşturur.

public static Microsoft.EntityFrameworkCore.Metadata.IMutableProperty GetOrAddProperty (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, System.Reflection.PropertyInfo propertyInfo);
static member GetOrAddProperty : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * System.Reflection.PropertyInfo -> Microsoft.EntityFrameworkCore.Metadata.IMutableProperty
<Extension()>
Public Function GetOrAddProperty (entityType As IMutableEntityType, propertyInfo As PropertyInfo) As IMutableProperty

Parametreler

entityType
IMutableEntityType

Özelliği alınacak veya eklenecek varlık türü.

propertyInfo
PropertyInfo

Varlık sınıfındaki karşılık gelen özellik.

Döndürülenler

IMutableProperty

Var olan veya yeni oluşturulan özellik.

Açıklamalar

Döndürülen özellik belirtilen türe sahip olmayabilir.

Şunlara uygulanır

GetOrAddProperty(IMutableEntityType, String, Type)

Verilen ada sahip olan özelliği alır veya zaten tanımlı değilse yeni bir tane oluşturur.

public static Microsoft.EntityFrameworkCore.Metadata.IMutableProperty GetOrAddProperty (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, string name, Type propertyType);
static member GetOrAddProperty : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * string * Type -> Microsoft.EntityFrameworkCore.Metadata.IMutableProperty
<Extension()>
Public Function GetOrAddProperty (entityType As IMutableEntityType, name As String, propertyType As Type) As IMutableProperty

Parametreler

entityType
IMutableEntityType

Özelliği alınacak veya eklenecek varlık türü.

name
String

Özelliğin adı.

propertyType
Type

Özelliğin tutacaksınız değer türü.

Döndürülenler

IMutableProperty

Var olan veya yeni oluşturulan özellik.

Açıklamalar

Döndürülen özellik belirtilen türe sahip olmayabilir.

Şunlara uygulanır

GetOrAddProperty(IMutableEntityType, String, Type, Boolean)

Verilen ada sahip olan özelliği alır veya zaten tanımlı değilse yeni bir tane oluşturur.

public static Microsoft.EntityFrameworkCore.Metadata.IMutableProperty GetOrAddProperty (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, string name, Type propertyType, bool shadow);
static member GetOrAddProperty : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * string * Type * bool -> Microsoft.EntityFrameworkCore.Metadata.IMutableProperty
<Extension()>
Public Function GetOrAddProperty (entityType As IMutableEntityType, name As String, propertyType As Type, shadow As Boolean) As IMutableProperty

Parametreler

entityType
IMutableEntityType

Özelliği alınacak veya eklenecek varlık türü.

name
String

Özelliğin adı.

propertyType
Type

Özelliğin tutacaksınız değer türü.

shadow
Boolean

Özelliğin gölge durumunda olup olmadığı.

Döndürülenler

IMutableProperty

Var olan veya yeni oluşturulan özellik.

Açıklamalar

Döndürülen özellik belirtilen türe ve gölglığa sahip olmayabilir.

Şunlara uygulanır