AssociationType Enumeration
Specifies the type of lookup relation between a field (column) in one list and a field in another list.
Namespace: Microsoft.SharePoint.Linq
Assembly: Microsoft.SharePoint.Linq (in Microsoft.SharePoint.Linq.dll)
Syntax
'Declaration
Public Enumeration AssociationType
'Usage
Dim instance As AssociationType
public enum AssociationType
Members
Member name | Description | |
---|---|---|
None | Unspecified or undefined relationship. | |
Single | Forward lookup with a single value. | |
Multi | Forward lookup with multiple values. | |
Backward | Reverse lookup with multiple values. |
Remarks
Values of this class are primarily used as the values of the MultivalueType property.
Examples
The following code is an example of the property in use:
[Association(Name="Manager", Storage="_manager", MultivalueType=AssociationType.Multi, List="Managers ")]
public EntitySet<Item> Manager {
get {
return this._manager;
}
set {
this._manager.Assign(value);
}
}