Share via


IConventionForeignKeyBuilder.CanSetPrincipalKey Method

Definition

Overloads

CanSetPrincipalKey(IReadOnlyList<IConventionProperty>, Boolean)

Returns a value indicating whether the given properties can be set as the target for this relationship from the current configuration source

CanSetPrincipalKey(IReadOnlyList<String>, Boolean)

Returns a value indicating whether the given properties can be set as the target for this relationship from the current configuration source

CanSetPrincipalKey(IReadOnlyList<IConventionProperty>, Boolean)

Source:
IConventionForeignKeyBuilder.cs
Source:
IConventionForeignKeyBuilder.cs
Source:
IConventionForeignKeyBuilder.cs

Returns a value indicating whether the given properties can be set as the target for this relationship from the current configuration source

public bool CanSetPrincipalKey (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> properties, bool fromDataAnnotation = false);
public bool CanSetPrincipalKey (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty>? properties, bool fromDataAnnotation = false);
abstract member CanSetPrincipalKey : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> * bool -> bool
Public Function CanSetPrincipalKey (properties As IReadOnlyList(Of IConventionProperty), Optional fromDataAnnotation As Boolean = false) As Boolean

Parameters

properties
IReadOnlyList<IConventionProperty>

The properties for this relationship to target.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

true if the given properties can be set as the target.

Applies to

CanSetPrincipalKey(IReadOnlyList<String>, Boolean)

Source:
IConventionForeignKeyBuilder.cs
Source:
IConventionForeignKeyBuilder.cs
Source:
IConventionForeignKeyBuilder.cs

Returns a value indicating whether the given properties can be set as the target for this relationship from the current configuration source

public bool CanSetPrincipalKey (System.Collections.Generic.IReadOnlyList<string> propertyNames, bool fromDataAnnotation = false);
public bool CanSetPrincipalKey (System.Collections.Generic.IReadOnlyList<string>? propertyNames, bool fromDataAnnotation = false);
abstract member CanSetPrincipalKey : System.Collections.Generic.IReadOnlyList<string> * bool -> bool
Public Function CanSetPrincipalKey (propertyNames As IReadOnlyList(Of String), Optional fromDataAnnotation As Boolean = false) As Boolean

Parameters

propertyNames
IReadOnlyList<String>

The properties for this relationship to target.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

true if the given properties can be set as the target.

Applies to