EntitySet Class
[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.
Inheritance Hierarchy
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)
Syntax
'Declaration
Public MustInherit Class EntitySet _
Implements IEnumerable, INotifyCollectionChanged, IRevertibleChangeTracking, IChangeTracking, _
INotifyPropertyChanged
'Usage
Dim instance As EntitySet
public abstract class EntitySet : IEnumerable,
INotifyCollectionChanged, IRevertibleChangeTracking, IChangeTracking, INotifyPropertyChanged
public ref class EntitySet abstract : IEnumerable,
INotifyCollectionChanged, IRevertibleChangeTracking, IChangeTracking, INotifyPropertyChanged
[<AbstractClassAttribute>]
type EntitySet =
class
interface IEnumerable
interface INotifyCollectionChanged
interface IRevertibleChangeTracking
interface IChangeTracking
interface INotifyPropertyChanged
end
public abstract class EntitySet implements IEnumerable, INotifyCollectionChanged, IRevertibleChangeTracking, IChangeTracking, INotifyPropertyChanged
The EntitySet type exposes the following members.
Properties
Name | Description | |
---|---|---|
CanAdd | Gets a value indicating whether the set allows new entities to be added. | |
CanEdit | Gets a value indicating whether entities in the set can be edited. | |
CanRemove | Gets a value indicating whether the set allows entities to be removed. | |
Count | Gets the current count of entities in the set. | |
EntityContainer | Gets the container for this EntitySet. | |
EntityType | Gets the type of entity contained by this EntitySet. | |
HasChanges | Gets a value indicating whether this EntitySet currently has any pending changes. | |
IsReadOnly | Gets a value indicating whether this set supports update operations. | |
List | Gets the backing list for this EntitySet. |
Top
Methods
Name | Description | |
---|---|---|
AcceptChanges | Accepts all changes made to this EntitySet. | |
Add | Adds the specified Entity to this EntitySet. | |
Attach | Attaches the specified Entity to this EntitySet in an unmodified state. | |
Clear | Clears all entities from the set. | |
CreateEntity | Creates a new entity. | |
CreateList | Creates the storage list for the set. | |
Detach | Detaches the specified Entity from this EntitySet. | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetEnumerator | Gets an enumerator for the collection. | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
OnCollectionChanged | Called whenever the collection changes. | |
OnPropertyChanged | Called when an EntitySet property has changed. | |
RaisePropertyChanged | Raises the PropertyChanged event for the specified property. | |
RejectChanges | Reverts all changes made to this EntitySet. | |
Remove | Removes the specified entity from the set. | |
ToString | (Inherited from Object.) |
Top
Events
Name | Description | |
---|---|---|
PropertyChanged | Occurs when a property is changed. |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
IChangeTracking.AcceptChanges | Resets the object’s state to unchanged by accepting the modifications. | |
INotifyCollectionChanged.CollectionChanged | Occurs when the collection is changed, or is reset. | |
IEnumerable.GetEnumerator | Returns an enumerator that iterates through a collection. | |
IChangeTracking.IsChanged | Gets the object's changed status. | |
IRevertibleChangeTracking.RejectChanges | Resets the object’s state to unchanged by rejecting the modifications. |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.