IdeaBlade DevForce 2010 Help Reference
EntityManager Class Members
See Also  Properties  Methods  Events Send Feedback
IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace : EntityManager Class


The following tables list the members exposed by EntityManager.

Public Constructors

 NameDescription
Public ConstructorEntityManager ConstructorOverloaded.   
Top

Public Properties

 NameDescription
Public PropertyAuthenticationContextGets or sets the IdeaBlade.EntityModel.Security.IAuthenticationContext used by this EntityManager.  
Public PropertyAuthorizedThreadId The thread id that this EntityManager is authorized to execute on. An EntityManager can only execute on a single thread at one time.  
Public PropertyCacheStateManagerThe EntityManager.CacheStateManager that controls saving and restoring the state of this EntityManager's internal cache.  
Public PropertyCompositionContextReturns the CompositionContext used by this EntityManager.  
Public PropertyDataSourceExtension Gets the DataSourceExtension used with this EntityManager.  
Public PropertyDataSourceResolver Gets the DataSourceResolver used to map entity types to data sources and IdGenerators.  
Public PropertyDefaultEntityReferenceStrategy Sets the default EntityReferenceStrategy for all references within this EntityManager;  
Public Propertystatic (Shared in Visual Basic)DefaultManagerA static (Shared in Visual Basic) property that gets or sets a default EntityManager.  
Public PropertyDefaultQueryStrategyGets or sets the default QueryStrategy to use for all queries where the QueryStrategy is not set either by parameter or as part of the Query itself.  
Public PropertyDefaultSaveOptionsGets or sets the default options that will be used if no SaveOptions are passed to a SaveChanges method.  
Public PropertyEntityServiceOption Gets the EntityServiceOption used to determine whether to connect to a local or distributed Entity Service.  
Public PropertyIsClient Returns whether the EntityManager is running on the client or the server.  
Public PropertyIsConnected Returns whether the EntityManager is currently connected to an EntityServer.  
Public PropertyIsLoggedIn Returns whether this EntityManager is logged in to the EntityServer.  
Public PropertyMetadataStoreThe EntityMetadataStore for this manager.  
Public PropertyOptions Misc. set of options available to control various aspects of an EntityManager's behavior.  
Public PropertyPrincipalReturns the System.Security.Principal.IPrincipal representing the current user.  
Public PropertyQueryCache Gets the cache of previously executed queries.  
Public PropertyServiceKey Gets the name of the serviceKey which defines the EntityServer address.  
Public PropertySessionKey Returns a key identifying the current user session.  
Public PropertyTag Gets or sets a user-defined value for this EntityManager.  
Public PropertyUseAsyncNavigation Gets or sets whether asynchronous queries are used when navigating relational properties.  
Public PropertyUsesDistributedEntityService Gets whether this EntityManager uses a distributed Entity Service.  
Public PropertyVerifierEngineGets or sets the IdeaBlade.Validation.VerifierEngine shared by all entities within this EntityManager.  
Top

Public Methods

 NameDescription
Public MethodAcceptChanges Accept changes to all modified, deleted or added entities within the cache.  
Public MethodAddEntitiesAdds newly created entities to the EntityManager cache.  
Public MethodAddEntityAdds a newly created entity to the EntityManager cache.  
Public MethodAttachEntities Adds a collection of detached entities to this EntityManager and marks them with the specified EntityState. Throws an exception if an entity with the same key already exists in the manager or if the specified entities are not in a detached state.  
Public MethodAttachEntity Adds a detached entity to this EntityManager and marks it with the specified EntityState. Throws an exception if an entity with the same key already exists in the manager or if the specified entity is not in a detached state.  
Public MethodCancelAsync Cancel a pending asynchronous operation.  
Public MethodCancelCallback Cancel an existing subscription to a server "push" method.  
Public MethodClear Resets the EntityManager to its initial "newed" state.  
Public MethodConnectConnect to the IdeaBlade.EntityModel.Server.EntityServer.  
Public MethodConnectAsyncOverloaded. Connect to the IdeaBlade.EntityModel.Server.EntityServer asynchronously.  
Public MethodCreateEntityOverloaded. Create a new entity of the requested type.  
Public MethodDisconnectDisconnect from the IdeaBlade.EntityModel.Server.EntityServer.  
Public MethodEquals (Inherited from object)
Public MethodExecuteQueryOverloaded.  Executes the specified query.  
Public MethodExecuteQueryAsyncOverloaded.  Execute a query asynchronously.  
Public MethodExecuteQueryForObject Executes the specified query returning a scalar value.  
Public MethodExecuteQueryForObjectAsyncOverloaded.  Executes the specified scalar query asynchronously.  
Public MethodFindEntitiesOverloaded.  Find all entities in cache having the specified entity state(s). (Except EntityState.Detached)  
Public MethodFindEntityOverloaded. Finds the object in cache using the EntityKey provided.  
Public MethodFindEntityGraph Given any entity or entities in a graph, collects and retrieves all related entities in the graph. This is a cache-only operation.  
Public MethodForceIdFixup Force an immediate update of all auto-generated IDs.  
Public MethodForceIdFixupAsyncOverloaded. Perform an asynchronous ForceIdFixup operation.  
Public MethodGenerateIdGenerates a temporary ID for an IEntity. The temporary ID will be mapped to a real ID when EntityManager.SaveChanges is called.  
Public MethodGetEntityGroupOverloaded.  Returns the EntityGroup associated with a specific Entity subtype.  
Public MethodGetEntityGroupsCollection of all IdeaBlade.EntityModel.EntityGroups within the cache.  
Public MethodGetHashCode (Inherited from object)
Public MethodGetNullEntityOverloaded.  Returns a "null" entity of the specified entity type.  
Public MethodGetQueryOverloaded.  Return an EntityQuery to retrieve entities of the specified type.  
Public MethodGetType (Inherited from object)
Public MethodHasChanges Determines whether the EntityManager cache has any changes that have not yet been persisted to the backend data source.  
Public MethodImportEntities Import entities from another EntityManager into this one.  
Public Methodstatic (Shared in Visual Basic)InternalFullReset For internal useOnly;  
Public MethodInvokeServerMethodOverloaded. Invokes the specified static (Shared in Visual Basic) method for execution on the server.  
Public MethodInvokeServerMethodAsyncOverloaded. Asynchronously invokes the specified static (Shared in Visual Basic) method for execution on the server.  
Public MethodIsEntityLoaded Returns true if the Entity is in cache.  
Public MethodIsEntityType Determines if the specified type is an entity type.  
Public MethodLinkForAuthentication Set authentication credentials on this EntityManager.  
Public MethodLoginOverloaded. Used to validate a user's credentials.  
Public MethodLoginAsync Perform an asynchronous login operation to validate the user's credentials.  
Public MethodLogoutLogs the user off, discarding session information.  
Public MethodLogoutAsync Perform an asynchronous logout operation.  
Public MethodRefetchEntitiesOverloaded.  Forces a collection of entities to be refetched from the backend data source.  
Public MethodRefetchEntitiesAsyncOverloaded. Perform an asynchronous RefetchEntities(EntityKeyList,MergeStrategy) operation.  
Public MethodRefetchEntity Forces an entity to be refetched from the backend data source.  
Public MethodRefetchEntityAsyncPerform an asynchronous RefetchEntities(EntityKeyList,MergeStrategy) operation.  
Public MethodRegisterCallbackOverloaded.  Register a client subscription to a server "push" method.  
Public MethodRejectChangesRolls back all Entity changes since the cache was created or the last EntityManager.SaveChanges call was made.  
Public MethodRemoveEntitiesOverloaded. Removes a collection of entities from the EntityManager cache.  
Public MethodRemoveEntityRemoves an IEntity from the EntityManager cache.  
Public MethodSaveChangesOverloaded. Persists all changed IEntity objects within the EntityManager cache to the backend data source using the DefaultSaveOptions.  
Public MethodSaveChangesAsyncOverloaded. Perform an asynchronous EntityManager.SaveChanges operation.  
Public MethodToString (Inherited from object)
Top

Protected Methods

 NameDescription
Protected MethodFinalize (Inherited from object)
Protected MethodMemberwiseClone (Inherited from object)
Protected MethodOnClearedRaises the Cleared event.  
Protected MethodOnConnectionStateChangedRaises the EntityManager.ConnectionStateChanged event.  
Protected Methodstatic (Shared in Visual Basic)OnEntityManagerCreatedRaises the EntityManager.EntityManagerCreated event.  
Protected MethodOnFetchingRaises the EntityManager.Fetching event.  
Protected MethodOnQueriedRaises the EntityManager.Queried event.  
Protected MethodOnQueryingRaises the EntityManager.Querying event.  
Protected MethodOnSavedRaises the EntityManager.Saved event.  
Protected MethodOnSavingRaises the EntityManager.Saving event.  
Top

Public Events

 NameDescription
Public EventCleared Fired whenever this entityManager is cleared.  
Public EventConnectionStateChanged Fired when the connection state of the EntityManager changes.  
Public EventEntityChanged Fired whenever an entity's state has changed in any significant manner.  
Public EventEntityChanging Fired whenever an entity's state is changing in any significant manner.  
Public EventEntityManagerCreated Event fired whenever a new EntityManager is created.  
Public EventEntityServerErrorRaised when an error occurs while accessing the EntityServer or backend data source.  
Public EventFetching Occurs before the EntityManager fetches data from an EntityServer. This event will only occur if the query will not be satisfied out of the local cache.  
Public EventQueried Occurs after the EntityManager has completed processing of a query.  
Public EventQuerying Occurs before the EntityManager executes a query.  
Public EventSaved Occurs after the EntityManager has persisted changed entities.  
Public EventSaving Occurs when the EntityManager is preparing to save changes.  
Top

See Also

© 2013 All Rights Reserved.