Export (0) Print
Expand All

EntitySet(TEntity) Class

WCF RIA Services

[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]

Represents a collection of Entity instances that provides change tracking and other services.

System.Object
  System.ServiceModel.DomainServices.Client.EntitySet
    System.ServiceModel.DomainServices.Client.EntitySet(TEntity)

Namespace:  System.ServiceModel.DomainServices.Client
Assembly:  System.ServiceModel.DomainServices.Client (in System.ServiceModel.DomainServices.Client.dll)

JScript does not support generic types and methods.

Type Parameters

TEntity

The type of Entity this entity set will contain.

The EntitySet(TEntity) type exposes the following members.

  NameDescription
Public methodEntitySet(TEntity)Initializes a new instance of EntitySet(TEntity) class.
Top

  NameDescription
Public propertyCanAddGets a value indicating whether the set allows new entities to be added. (Inherited from EntitySet.)
Public propertyCanEditGets a value indicating whether entities in the set can be edited. (Inherited from EntitySet.)
Public propertyCanRemoveGets a value indicating whether the set allows entities to be removed. (Inherited from EntitySet.)
Public propertyCountGets the current count of entities in the set. (Inherited from EntitySet.)
Public propertyEntityContainerGets the container for this EntitySet. (Inherited from EntitySet.)
Public propertyEntityTypeGets the type of entity contained by this EntitySet. (Inherited from EntitySet.)
Public propertyHasChangesGets a value indicating whether this EntitySet currently has any pending changes. (Inherited from EntitySet.)
Public propertyIsReadOnlyGets a value indicating whether this set supports update operations. (Inherited from EntitySet.)
Protected propertyListGets the backing list for this EntitySet. (Inherited from EntitySet.)
Top

  NameDescription
Protected methodAcceptChangesAccepts all changes made to this EntitySet. (Inherited from EntitySet.)
Public methodAdd(TEntity)Adds the specified entity to this entity set. Also, recursively adds all unattached entities that are reachable through associations.
Public methodAdd(Entity)Adds the specified Entity to this EntitySet. (Inherited from EntitySet.)
Public methodAttach(TEntity)Attaches the specified Entity to this entity set in an unmodified state. Also, recursively attaches all unattached entities that are reachable through associations.
Public methodAttach(Entity)Attaches the specified Entity to this EntitySet in an unmodified state. (Inherited from EntitySet.)
Public methodClearClears all entities from the set. (Inherited from EntitySet.)
Protected methodCreateEntityCreates a new entity. (Inherited from EntitySet.)
Protected methodCreateListCreates the storage list for the set. (Inherited from EntitySet.)
Public methodDetach(TEntity)Detaches the Entity from this entity set.
Public methodDetach(Entity)Detaches the specified Entity from this EntitySet. (Inherited from EntitySet.)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetEnumeratorReturns an enumerator for this entity set.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodOnCollectionChangedCalled whenever the collection changes. (Inherited from EntitySet.)
Protected methodOnPropertyChangedCalled when an EntitySet property has changed. (Inherited from EntitySet.)
Protected methodRaisePropertyChangedRaises the PropertyChanged event for the specified property. (Inherited from EntitySet.)
Protected methodRejectChangesReverts all changes made to this EntitySet. (Inherited from EntitySet.)
Public methodRemove(TEntity)Removes the specified entity from the set. If the entity is the root of a compositional hierarchy, all child entities will also be removed.
Public methodRemove(Entity)Removes the specified entity from the set. (Inherited from EntitySet.)
Public methodToString (Inherited from Object.)
Top

  NameDescription
Public eventEntityAddedOccurs when an Entity is added to this entity set.
Public eventEntityRemovedOccurs when an Entity is removed from this entity set.
Public eventPropertyChangedOccurs when a property is changed. (Inherited from EntitySet.)
Top

  NameDescription
Explicit interface implemetationPrivate methodIChangeTracking.AcceptChangesResets the object’s state to unchanged by accepting the modifications. (Inherited from EntitySet.)
Explicit interface implemetationPrivate eventINotifyCollectionChanged.CollectionChangedOccurs when the collection is changed, or is reset. (Inherited from EntitySet.)
Explicit interface implemetationPrivate methodICollectionViewFactory.CreateViewReturns a custom view for specialized sorting, filtering, grouping, and currency.
Explicit interface implemetationPrivate methodIEnumerable.GetEnumeratorReturns an enumerator that iterates through a collection. (Inherited from EntitySet.)
Explicit interface implemetationPrivate methodIEnumerable(TEntity).GetEnumeratorReturns an enumerator for this entity set.
Explicit interface implemetationPrivate propertyIChangeTracking.IsChangedGets the object's changed status. (Inherited from EntitySet.)
Explicit interface implemetationPrivate methodIRevertibleChangeTracking.RejectChangesResets the object’s state to unchanged by rejecting the modifications. (Inherited from EntitySet.)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft