Aracılığıyla paylaş


IConventionEntityTypeBuilder.CreateUniqueProperty Yöntem

Tanım

Mevcut özelliklerden farklı bir ada sahip bir özellik oluşturur.

public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder CreateUniqueProperty (Type propertyType, string basePropertyName, bool required);
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder? CreateUniqueProperty (Type propertyType, string basePropertyName, bool required);
abstract member CreateUniqueProperty : Type * string * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder
Public Function CreateUniqueProperty (propertyType As Type, basePropertyName As String, required As Boolean) As IConventionPropertyBuilder

Parametreler

propertyType
Type

Özelliğin barındıracağı değerin türü.

basePropertyName
String

İstenen özellik adı.

required
Boolean

Özelliğin gerekli olup olmadığını gösteren değer.

Döndürülenler

Varlık türünde varsa özelliği yapılandırmak için kullanılabilecek bir nesne, null aksi takdirde.

Şunlara uygulanır