Knight Data Access Layer
SetParent Method (AutoMap)




KellermanSoftware.NetDataAccessLayer Namespace > AutoMap Class : SetParent Method
The type of relationship child class
Parent property name
Foreign key name
Mark specified by name property as parent
Syntax
Public Sub SetParent( _
   ByVal type As Type, _
   ByVal propertyName As String, _
   ByVal foreignKeyName As String _
) 
Dim instance As AutoMap
Dim type As Type
Dim propertyName As String
Dim foreignKeyName As String
 
instance.SetParent(type, propertyName, foreignKeyName)
public void SetParent( 
   Type type,
   string propertyName,
   string foreignKeyName
)
public: void SetParent( 
   Type* type,
   string* propertyName,
   string* foreignKeyName
) 
public:
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

AutoMap Class
AutoMap Members