AssociationType Enumeration

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)

public enum AssociationType

Member nameDescription
NoneUnspecified or undefined relationship.
SingleForward lookup with a single value.
MultiForward lookup with multiple values.
BackwardReverse lookup with multiple values.

Values of this class are primarily used as the values of the MultivalueType property.

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);
    }
}

Show:
© 2016 Microsoft