EntitySetTEntity Methods |
The EntitySetTEntity generic type exposes the following members.
Name | Description | |
---|---|---|
Add |
Adds an entity.
| |
Clear |
Removes all entities from this entity set.
| |
Ensure |
Ensures that the entity with a specified EntityIdentifier
is not removed or replaced with a different entity with the same identifier before
a transaction is committed. If another transaction commits first and removes or replaces
the entity, the transaction will raise a TransactionConflictException
when it is committed. It is valid to call this method with an id
that is not present in the entity set. In that case, a TransactionConflictException
will be thrown if an entity with id is added to the entity set in
another transaction.
| |
EnsureAll |
Ensures that the entity set does not change at all before the transaction is committed.
If another transaction commits first and makes any changes to the entity set at all,
this transaction will raise a TransactionConflictException when it
is committed.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetCount |
Gets the number of entities in this entity set.
| |
GetEntities |
Gets a read-only collection of all the entities in the entity set.
| |
GetEntityById |
Gets the entity with the given EntityIdentifier.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Remove(Transaction, TEntity) |
Removes an entity.
| |
Remove(Transaction, Object) |
Removes an entity.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |