IConventionEntityTypeBuilder.CreateUniqueProperty(Type, String, Boolean) Yöntem

Tanım

Mevcut özelliklerden farklı bir adla 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 tutacak olduğu değer türü.

basePropertyName
String

İstenen özellik adı.

required
Boolean

Özelliğin gerekli olup olmadığını belirten bir değer.

Döndürülenler

IConventionPropertyBuilder

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

Şunlara uygulanır