Export (0) Print
Expand All

EntitySet 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.

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

public abstract class EntitySet : IEnumerable, 
	INotifyCollectionChanged, IRevertibleChangeTracking, IChangeTracking, INotifyPropertyChanged

The EntitySet type exposes the following members.

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

  NameDescription
Protected methodAcceptChangesAccepts all changes made to this EntitySet.
Public methodAddAdds the specified Entity to this EntitySet.
Public methodAttachAttaches the specified Entity to this EntitySet in an unmodified state.
Public methodClearClears all entities from the set.
Protected methodCreateEntityCreates a new entity.
Protected methodCreateListCreates the storage list for the set.
Public methodDetachDetaches the specified Entity from this EntitySet.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetEnumeratorGets an enumerator for the collection.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodOnCollectionChangedCalled whenever the collection changes.
Protected methodOnPropertyChangedCalled when an EntitySet property has changed.
Protected methodRaisePropertyChangedRaises the PropertyChanged event for the specified property.
Protected methodRejectChangesReverts all changes made to this EntitySet.
Public methodRemoveRemoves the specified entity from the set.
Public methodToString (Inherited from Object.)
Top

  NameDescription
Public eventPropertyChangedOccurs when a property is changed.
Top

  NameDescription
Explicit interface implemetationPrivate methodIChangeTracking.AcceptChangesResets the object’s state to unchanged by accepting the modifications.
Explicit interface implemetationPrivate eventINotifyCollectionChanged.CollectionChangedOccurs when the collection is changed, or is reset.
Explicit interface implemetationPrivate methodIEnumerable.GetEnumeratorReturns an enumerator that iterates through a collection.
Explicit interface implemetationPrivate propertyIChangeTracking.IsChangedGets the object's changed status.
Explicit interface implemetationPrivate methodIRevertibleChangeTracking.RejectChangesResets the object’s state to unchanged by rejecting the modifications.
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