Aracılığıyla paylaş


IConventionEntityTypeBuilder.GetTargetEntityTypeBuilder Yöntem

Tanım

Olası gezinti hedefi için bir oluşturucu alır veya oluşturur.

public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder? GetTargetEntityTypeBuilder (Type targetClrType, System.Reflection.MemberInfo navigationInfo, bool createIfMissing = true, bool? targetShouldBeOwned = default, bool fromDataAnnotation = false);
abstract member GetTargetEntityTypeBuilder : Type * System.Reflection.MemberInfo * bool * Nullable<bool> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder
Public Function GetTargetEntityTypeBuilder (targetClrType As Type, navigationInfo As MemberInfo, Optional createIfMissing As Boolean = true, Optional targetShouldBeOwned As Nullable(Of Boolean) = Nothing, Optional fromDataAnnotation As Boolean = false) As IConventionEntityTypeBuilder

Parametreler

targetClrType
Type

Hedefin CLR türü.

navigationInfo
MemberInfo

Gezinti özelliği.

createIfMissing
Boolean

Şu anda modelde değilse varlık türünün oluşturulup oluşturulmayacağı.

targetShouldBeOwned
Nullable<Boolean>

Hedefin sahip olunup bulunmayacağı. null ya da olabilir.

fromDataAnnotation
Boolean

Yapılandırmanın bir veri ek açıklaması kullanılarak belirtilip belirtilmedidiğini gösterir.

Döndürülenler

Varlık türü oluşturucusu veya null bulunamaz ve oluşturulamaz.

Şunlara uygulanır