MetadataWorkspaceExtensions.IsPKToPK Method
[This page is specific to the Entity Framework version 6. The latest version is available as the 'Entity Framework' NuGet package. For more information about Entity Framework, see msdn.com/data/ef.]
Determines if an association is across solely primary keys
Namespace: Microsoft.Data.Entity.Design.DatabaseGeneration
Assembly: Microsoft.Data.Entity.Design.DatabaseGeneration (in Microsoft.Data.Entity.Design.DatabaseGeneration.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function IsPKToPK ( _
association As AssociationType _
) As Boolean
'Usage
Dim association As AssociationType
Dim returnValue As Boolean
returnValue = association.IsPKToPK()
public static bool IsPKToPK(
this AssociationType association
)
[ExtensionAttribute]
public:
static bool IsPKToPK(
AssociationType^ association
)
static member IsPKToPK :
association:AssociationType -> bool
public static function IsPKToPK(
association : AssociationType
) : boolean
Parameters
- association
Type: System.Data.Entity.Core.Metadata.Edm.AssociationType
The association.
Return Value
Type: System.Boolean
true if the multiplicity of the association is 1:1, 1:0..1, or 0..1:0..1, and false otherwise
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type AssociationType. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.113) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.113).