Export (0) Print
Expand All

AssociationAttribute.MultivalueType property

Gets or sets the directionality of the association and whether it is single-valued or multi-valued.

Namespace:  Microsoft.SharePoint.Linq
Assembly:  Microsoft.SharePoint.Linq (in Microsoft.SharePoint.Linq.dll)

public AssociationType MultivalueType { get; set; }

Property value

Type: Microsoft.SharePoint.Linq.AssociationType
An AssociationType that specifies the directionality of the association and whether it is single-valued or multi-valued.

The following example shows the MultivalueType property being used in an [Association] attribute used in the declaration of a property that represents a Lookup column to a Managers list.


[Association(Name="Manager", Storage="_manager", MultivalueType=AssociationType.Multi, List="Managers ")]
public EntitySet<Item> Manager {
    get {
        return this._manager;
    }
    set {
        this._manager.Assign(value);
    }
}

Show:
© 2014 Microsoft