Knight Data Access Layer
ParentObjectAttribute Constructor(Type,String,ForeignKeyAction,ForeignKeyAction)




KellermanSoftware.NetDataAccessLayer.Attributes Namespace > ParentObjectAttribute Class > ParentObjectAttribute Constructor : ParentObjectAttribute Constructor(Type,String,ForeignKeyAction,ForeignKeyAction)
The object type of the parent
The foreign key name
The action taken when a user tries to update a key to which existing foreign keys point
The action taken when a user tries to delete a key to which existing foreign keys point
Specify the parent object by type and foreign key name
Syntax
Public Function New( _
   ByVal parentObjectType As Type, _
   ByVal foreignKeyName As String, _
   ByVal updateAction As ForeignKeyAction, _
   ByVal deleteAction As ForeignKeyAction _
)
Dim parentObjectType As Type
Dim foreignKeyName As String
Dim updateAction As ForeignKeyAction
Dim deleteAction As ForeignKeyAction
 
Dim instance As New ParentObjectAttribute(parentObjectType, foreignKeyName, updateAction, deleteAction)
public ParentObjectAttribute( 
   Type parentObjectType,
   string foreignKeyName,
   ForeignKeyAction updateAction,
   ForeignKeyAction deleteAction
)
public: ParentObjectAttribute( 
   Type* parentObjectType,
   string* foreignKeyName,
   ForeignKeyAction updateAction,
   ForeignKeyAction deleteAction
)
public:
ParentObjectAttribute( 
   Type^ parentObjectType,
   String^ foreignKeyName,
   ForeignKeyAction updateAction,
   ForeignKeyAction deleteAction
)

Parameters

parentObjectType
The object type of the parent
foreignKeyName
The foreign key name
updateAction
The action taken when a user tries to update a key to which existing foreign keys point
deleteAction
The action taken when a user tries to delete a key to which existing foreign keys point
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

ParentObjectAttribute Class
ParentObjectAttribute Members
Overload List