AssociationAttribute.List property

Gets or sets the name of the target list.

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

public string List { get; set; }

Property value

Type: System.String
A String that represents the target list.

The following example shows the List 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 {