Knight Data Access Layer
SetChild Method (AutoMap)




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

Parameters

type
The type of relationship parent class
propertyName
Child 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