IndependentNavigationPropertyConfiguration.HasIndependentKey Method (Generic Action)
This page is specific to the Entity Framework 4.1 release documentation. The Entity Framework 4.1 is built on top of the Entity Framework 4 included in .NET Framework 4. The Entity Framework 4.1 can be downloaded and installed from the Microsoft Download Center. Other versions of the Entity Framework are also available:
Configures the relationship to use foreign key property(s) that are not exposed in the object model. The column(s) and table can be customized by specifying a configuration action. If foreign key properties are exposes in the object model then use the HasForeignKey method. Not all relationships support exposing foreign key properties in the object model.
Namespace: System.Data.Entity.ModelConfiguration.Configuration
Assembly: EntityFramework (in entityframework.dll)
Usage
Syntax
'Declaration
Public Function HasIndependentKey ( _
configurationAction As Action(Of IndependentAssociationMappingConfiguration) _
) As CascadableNavigationPropertyConfiguration
public CascadableNavigationPropertyConfiguration HasIndependentKey (
Action<IndependentAssociationMappingConfiguration> configurationAction
)
public:
CascadableNavigationPropertyConfiguration^ HasIndependentKey (
Action<IndependentAssociationMappingConfiguration^>^ configurationAction
)
public CascadableNavigationPropertyConfiguration HasIndependentKey (
Action<IndependentAssociationMappingConfiguration> configurationAction
)
public function HasIndependentKey (
configurationAction : Action<IndependentAssociationMappingConfiguration>
) : CascadableNavigationPropertyConfiguration
Parameters
- configurationAction
Action that configures the foreign key column(s) and table.
Return Value
A configuration object that can be used to further configure the relationship.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003 , Windows Server 2008, and Windows 2000
Target Platforms
See Also
Reference
IndependentNavigationPropertyConfiguration Class
IndependentNavigationPropertyConfiguration Members
System.Data.Entity.ModelConfiguration.Configuration Namespace