EntitySet<TEntity> Members

Include Protected Members
Include Inherited Members

Provides for deferred loading and relationship maintenance for the “many” side of one-to-many and many-to-many relationships

The EntitySet<TEntity> type exposes the following members.

Constructors

  Name Description
Public method EntitySet<TEntity> Initializes a new instance of the EntitySet<TEntity> class

Top

Properties

  Name Description
Public property Count Gets the total number of items in the EntitySet<TEntity>.
Public property Item Gets or sets the item at the specified index.

Top

Methods

  Name Description
Public method Add Adds the specified entity to the EntitySet<TEntity>.
Public method Assign Replaces the entities currently associated with this EntitySet<TEntity> with the specified collection.
Public method Clear Removes all entities from this EntitySet<TEntity>.
Public method Clone Creates a shallow copy of the EntitySet<TEntity>.
Public method Contains(Object) Indicates whether a specified object is in the EntitySet<TEntity>.
Public method Contains(TEntity) Indicates whether a specified entity is in the EntitySet<TEntity>.
Public method CopyTo(Array, Int32) Copies the members of the EntitySet<TEntity> to the specified array beginning at the specified array index.
Public method CopyTo([], Int32) Copies the members of the EntitySet<TEntity> to the specified array beginning at the specified array index.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetEnumerator Returns an enumerator that iterates through the EntitySet<TEntity>.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method IndexOf(Object) Returns the zero-based index of the first occurrence of the specified object in the collection.
Public method IndexOf(TEntity) Returns the zero-based index of the first occurrence of the specified entity in the collection.
Public method Insert Inserts a specified entity into the EntitySet<TEntity> at the specified index.
Protected method MemberwiseClone (Inherited from Object.)
Public method Remove(Object) Removes the specified object from the EntitySet<TEntity>.
Public method Remove(TEntity) Removes the specified entity from the EntitySet<TEntity>.
Public method RemoveAt Removes the entity at the specified zero-based index of the EntitySet<TEntity>.
Public method ToString (Inherited from Object.)

Top

Events

  Name Description
Public event OnChanged Raised after a change to this EntitySet<TEntity> object.
Public event OnChanging Raised before a change to this EntitySet<TEntity> object.
Public event OnSync Raised when the EntitySet<TEntity> object is synchronized with the entities that it represents.

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IList.Add Not implemented. Use Add(TEntity).
Explicit interface implemetationPrivate property IQueryable.ElementType Gets the type of the items in the EntitySet<TEntity>.
Explicit interface implemetationPrivate property IQueryable.Expression Gets the expression tree of the most recent Language Integrated Query (LINQ) query of the EntityList<TEntity>.
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator Returns an object that iterates the EntitySet<TEntity>.
Explicit interface implemetationPrivate method IList.Insert Inserts the specified object into the EntitySet<TEntity> at the specified index.
Explicit interface implemetationPrivate property IList.IsFixedSize Not implemented.
Explicit interface implemetationPrivate property ICollection<TEntity>.IsReadOnly Not implemented.
Explicit interface implemetationPrivate property IList.IsReadOnly Not implemented.
Explicit interface implemetationPrivate property ICollection.IsSynchronized Not implemented.
Explicit interface implemetationPrivate property IList.Item Gets or sets the item at the specified index.
Explicit interface implemetationPrivate property IQueryable.Provider Gets an object that translates expression tree queries into Collaborative Application Markup Language (CAML) queries and executes them.
Explicit interface implemetationPrivate property ICollection.SyncRoot Not implemented.

Top

See Also

Reference

EntitySet<TEntity> Class

Microsoft.SharePoint.Linq Namespace