EntityManager Methods
EntityManager Methods Breeze.sharp

The EntityManager type exposes the following members.

Methods

  Name Description
Public method AcceptChanges
Calls AcceptChanges on each Added, Deleted or Modified entity within the cache. All pending changes will be considered complete and after this call the EntityManager will have no pending changes.
Public method AddEntity
Attaches a detached entity to this EntityManager and sets its EntityState to 'Added'.
Public method AttachEntity
Attaches a detached entity to this EntityManager and sets its EntityState to a specified state.
Public method CheckAuthorizedThreadId
Public method Clear
Removes all entities from this EntityManager.
Public method CreateEntity(Type, Object, EntityState)
Creates a new entity and sets its EntityState. Unless this state is Detached, the entity is also added to the EntityManager.
Public method CreateEntity(EntityType, Object, EntityState)
Creates a new entity and sets its EntityState. Unless this state is Detached, the entity is also added to the EntityManager.
Public method CreateEntityT(EntityState)
Creates a new entity and sets its EntityState. Unless this state is Detached, the entity is also added to the EntityManager.
Public method CreateEntityT(Object, EntityState)
Creates a new entity and sets its EntityState. Unless this state is Detached, the entity is also added to the EntityManager.
Public method DetachEntity
Removes a specified entity from this EntityManager. Note this is NOT a deletion. It simply causes the EntityManager to 'forget' about this entity.
Public method EnableChangeNotification
Turns on or off change notification events for a specific entity type.
Public method Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public method ExecuteQuery(EntityQuery)
Performs an asynchronous query and that returns an untyped result.
Public method ExecuteQuery(EntityQuery, CancellationToken)
Performs an asynchronous query and that returns an untyped result.
Public method ExecuteQueryT(EntityQueryT)
Performs an asynchronous query and that returns a typed result.
Public method ExecuteQueryT(EntityQueryT, CancellationToken)
Performs an asynchronous query and that returns a typed result.
Public method ExecuteQueryLocally(EntityQuery)
Executes the specified query against the local cache and returns an untyped result.
Public method ExecuteQueryLocallyT(EntityQueryT)
Executes the specified query against the local cache and returns a typed result.
Public method ExportEntities(IEnumerableIEntity, Boolean)
Exports a specified list of entities as a string, with the option to include metadata
Public method ExportEntities(IEnumerableIEntity, Boolean, TextWriter)
Exports a specified list of entities via a TextWriter, with the option to include metadata
Public method FetchEntityByKey(EntityKey, Boolean)
Performs an asynchronous query that optionally checks the local cache first.
Public method FetchEntityByKey(EntityKey, CancellationToken, Boolean)
Performs an asynchronous query that optionally checks the local cache first.
Public method FetchMetadata(DataService)
Fetches the metadata associated with the EntityManager's current 'serviceName'. This call also occurs internally before the first query to any service if the metadata hasn't already been loaded.
Public method FetchMetadata(CancellationToken, DataService)
Fetches the metadata associated with the EntityManager's current 'serviceName'. This call also occurs internally before the first query to any service if the metadata hasn't already been loaded.
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public method GenerateId
Generates a temporary ID for an IEntity. The temporary ID will be mapped to a real ID when SaveChanges(SaveOptions) is called.
Public method GetChanges(IEnumerableType)
Returns a collection of all of the pending changes within this EntityManager for a specified list of entity types.
Public method GetChanges(Type)
Returns a collection of all of the pending changes within this EntityManager.
Public method GetEntities(Type)
Retrieves all entities of the specified types from cache.
Public method GetEntities(EntityState)
Find all entities in cache having the specified entity state(s).
Public method GetEntities(IEnumerableType, EntityState)
Retrieves all entities of the specified types with the specified entity state(s) from cache.
Public method GetEntities(Type, EntityState)
Retrieves all entities of a specified type with the specified entity state(s) from cache.
Public method GetEntitiesT(EntityState)
Retrieves all entities of a specified type with the specified entity state(s) from cache as a typed enumerable.
Public method GetEntityByKey(EntityKey)
Attempts to return a specific entity within the local cache by its key and returns a null if not found.
Public method GetEntityByKeyT(Object)
Attempts to return a specific entity within the local cache by its key and returns a null if not found.
Public method GetEntityByKeyT(EntityKey)
Attempts to return a specific entity within the local cache by its key and returns a null if not found.
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method HasChanges
Returns whether there are any pending changes for this EntityManager or for selected types within this EntityManager.
Public method ImportEntities(TextReader, ImportOptions)
Imports the result of a previously executed ExportEntities call via a TextReader.
Public method ImportEntities(String, ImportOptions)
Imports the string result of a previously executed ExportEntities call.
Public method IsChangeNotificationEnabled
Whether change notification events are enabled for a specific entity type.
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method RejectChanges
Calls RejectChanges on each Added, Deleted or Modified entity within the cache. All pending changes will be lost and after this call the EntityManager will have no pending changes.
Public method SaveChanges(SaveOptions)
Performs an asynchronous saves of all pending changes within this EntityManager.
Public method SaveChanges(IEnumerableIEntity, SaveOptions)
Performs an asynchronous save of just the specified entities within this EntityManager.
Public method ToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also

Reference