IConventionRelationshipBuilder.CanSetPrincipalKey Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
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);
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)
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);
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
Entity Framework