Knight Data Access Layer
SetParent Method (IAutoMap)




KellermanSoftware.NetDataAccessLayer Namespace > IAutoMap Interface : SetParent Method
The type of relationship child class
Parent property name
Foreign key name
Mark specified by name property as parent
Syntax
Sub SetParent( _
   ByVal type As Type, _
   ByVal propertyName As String, _
   ByVal foreignKeyName As String _
) 
Dim instance As IAutoMap
Dim type As Type
Dim propertyName As String
Dim foreignKeyName As String
 
instance.SetParent(type, propertyName, foreignKeyName)
void SetParent( 
   Type type,
   string propertyName,
   string foreignKeyName
)
void SetParent( 
   Type* type,
   string* propertyName,
   string* foreignKeyName
) 
void SetParent( 
   Type^ type,
   String^ propertyName,
   String^ foreignKeyName
) 

Parameters

type
The type of relationship child class
propertyName
Parent property name
foreignKeyName
Foreign key name
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IAutoMap Interface
IAutoMap Members