IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace : EntityManager Class |
The following tables list the members exposed by EntityManager.
Name | Description | |
---|---|---|
EntityManager Constructor | Overloaded. |
Name | Description | |
---|---|---|
AuthenticationContext | Gets or sets the IdeaBlade.EntityModel.Security.IAuthenticationContext used by this EntityManager. | |
AuthorizedThreadId | The thread id that this EntityManager is authorized to execute on. An EntityManager can only execute on a single thread at one time. | |
CacheStateManager | The CacheStateManager that controls saving and restoring the state of this EntityManager's internal cache. | |
CompositionContext | Returns the CompositionContext used by this EntityManager. | |
DataSourceExtension | Gets the DataSourceExtension used with this EntityManager. | |
DataSourceResolver | Gets the DataSourceResolver used to map entity types to data sources and IdGenerators. | |
DefaultEntityReferenceStrategy | Sets the default EntityReferenceStrategy for all references within this EntityManager; | |
DefaultQueryStrategy | Gets 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. | |
DefaultSaveOptions | Gets or sets the default options that will be used if no SaveOptions are passed to a SaveChanges method. | |
EntityServiceOption | Gets the EntityServiceOption used to determine whether to connect to a local or distributed Entity Service. | |
IsClient | Returns whether the EntityManager is running on the client or the server. | |
IsConnected | Returns whether the EntityManager is currently connected to an EntityServer. | |
IsLoggedIn | Returns whether this EntityManager is logged in to the EntityServer. | |
MetadataStore | The EntityMetadataStore for this manager. | |
Options | Misc. set of options available to control various aspects of an EntityManager's behavior. | |
QueryCache | Gets the cache of previously executed queries. | |
SafeThreadingCheck | Delegate to a method called by the EntityManager to determine if an operation can safely be performed on the current thread. | |
ServiceKey | Gets the name of the serviceKey which defines the EntityServer address. | |
Tag | Gets or sets a user-defined value for this EntityManager. | |
UsesDistributedEntityService | Gets whether this EntityManager uses a distributed Entity Service. | |
VerifierEngine | Gets or sets the IdeaBlade.Validation.VerifierEngine shared by all entities within this EntityManager. |
Name | Description | |
---|---|---|
AcceptChanges | Accept changes to all modified, deleted or added entities within the cache. | |
AddEntities | Adds newly created entities to the EntityManager cache. | |
AddEntity | Adds a newly created entity to the EntityManager cache. | |
AttachEntities | 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. | |
AttachEntity | 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. | |
Clear | Resets the EntityManager to its initial "newed" state. | |
Connect | Connect to the IdeaBlade.EntityModel.Server.EntityServer. | |
ConnectAsync | Overloaded. ConnectAsync(CancellationToken) with System.Threading.CancellationToken.None | |
CreateEntity | Overloaded. Create a new entity of the requested type. | |
Disconnect | Disconnect from the IdeaBlade.EntityModel.Server.EntityServer. | |
Equals | (Inherited from object) | |
ExecuteQuery | Overloaded. Executes the specified query. | |
ExecuteQueryAsync | Overloaded. Executes the specified query asynchronously. | |
ExecuteQueryForObject | Executes the specified query returning a scalar value. | |
ExecuteQueryForObjectAsync | Overloaded. Executes the specified scalar query asynchronously. | |
FindEntities | Overloaded. Find all entities in cache having the specified entity state(s). | |
FindEntity | Overloaded. Finds the object in cache using the EntityKey provided. | |
FindEntityGraph | Given any entity or entities in a graph, collects and retrieves all related entities in the graph. This is a cache-only operation. | |
ForceIdFixup | Force an immediate update of all auto-generated IDs. | |
ForceIdFixupAsync | Perform an asynchronous ForceIdFixup operation. | |
GenerateId | Generates a temporary ID for an IEntity. The temporary ID will be mapped to a real ID when SaveChanges is called. | |
GetEntityGroup | Overloaded. Returns the EntityGroup associated with a specific Entity subtype. | |
GetEntityGroups | Collection of all EntityGroups within the cache. | |
GetHashCode | (Inherited from object) | |
GetNullEntity | Overloaded. Returns a "null" entity of the specified entity type. | |
GetQuery | Overloaded. Return an EntityQuery to retrieve entities of the specified type. | |
GetType | (Inherited from object) | |
HasChanges | Determines whether the EntityManager cache has any changes that have not yet been persisted to the backend data source. | |
ImportEntities | Import entities from another EntityManager into this one. | |
InvokeServerMethod | Overloaded. Invokes the specified static (Shared in Visual Basic) method for execution on the server. | |
InvokeServerMethodAsync | Overloaded. Calls InvokeServerMethodAsync(ServerMethodDelegate,CancellationToken,Object[]) with System.Threading.CancellationToken.None | |
IsEntityLoaded | Returns true if the Entity is in cache. | |
IsEntityType | Determines if the specified type is an entity type. | |
RefetchEntities | Overloaded. Forces a collection of entities to be refetched from the backend data source. | |
RefetchEntitiesAsync | Overloaded. Forces a collection of entities to be refetched from the backend data source. | |
RefetchEntity | Forces an entity to be refetched from the backend data source. | |
RefetchEntityAsync | Overloaded. Calls RefetchEntityAsync(Object,MergeStrategy,CancellationToken) with System.Threading.CancellationToken.None | |
RejectChanges | Rolls back all Entity changes since the cache was created or the last SaveChanges call was made. | |
RemoveEntities | Overloaded. Removes a collection of entities from the EntityManager cache. | |
RemoveEntity | Removes an IEntity from the EntityManager cache. | |
SaveChanges | Persists all changed entities within the EntityManager cache to the backend data source using the SaveOptions specified. | |
SaveChangesAsync | Perform an asynchronous SaveChanges operation with the specified SaveOptions. | |
ToString | (Inherited from object) | |
TryExecuteQuery | Overloaded. Executes the specified query and returns a QueryResult. | |
TryExecuteQueryAsync | Overloaded. Executes the specified query asynchronously and returns a QueryResult. | |
TrySaveChanges | Persists one or more selected Entities within the EntityManager cache to the backend data source using the SaveOptions specified. | |
TrySaveChangesAsync | Perform an asynchronous SaveChanges operation with the specified SaveOptions. |
Name | Description | |
---|---|---|
Finalize | (Inherited from object) | |
MemberwiseClone | (Inherited from object) | |
OnCleared | Raises the Cleared event. | |
OnConnectionStateChanged | Raises the ConnectionStateChanged event. | |
OnEntityManagerCreated | Raises the EntityManagerCreated event. | |
OnFetching | Raises the Fetching event. | |
OnQueried | Raises the Queried event. | |
OnQuerying | Raises the Querying event. | |
OnSaved | Raises the Saved event. | |
OnSaving | Raises the Saving event. |
Name | Description | |
---|---|---|
ConnectAsync | Connect to the IdeaBlade.EntityModel.Server.EntityServer asynchronously. | |
ExecuteQueryAsync | Overloaded. Execute a query asynchronously. | |
ForceIdFixupAsync | Perform an asynchronous ForceIdFixup operation. | |
InvokeServerMethodAsync | Overloaded. Asynchronously invokes the specified static (Shared in Visual Basic) method for execution on the server. | |
RefetchEntitiesAsync | Overloaded. Performs an asynchronous refetch of all entities with the specified EntityState(s) from the backend data source. | |
RefetchEntityAsync | Perform an asynchronous refetch operation. | |
SaveChanges | Persists one or more selected Entities within the EntityManager cache to the backend data source using the IdeaBlade.EntityModel.SaveOptions specified. | |
SaveChangesAsync | Overloaded. Perform an asynchronous SaveChanges operation. | |
SaveChangesAsync | Perform an asynchronous IdeaBlade.EntityModel.Compat.EntityManagerPartialSaveExtensions.SaveChanges(IdeaBlade.EntityModel.EntityManager,System.Collections.IEnumerable,IdeaBlade.EntityModel.SaveOptions) operation with the specified list of entities and IdeaBlade.EntityModel.SaveOptions. | |
TrySaveChanges | Persists one or more selected Entities within the EntityManager cache to the backend data source using the IdeaBlade.EntityModel.SaveOptions specified. | |
TrySaveChangesAsync | Perform an asynchronous IdeaBlade.EntityModel.Compat.EntityManagerPartialSaveExtensions.SaveChanges(IdeaBlade.EntityModel.EntityManager,System.Collections.IEnumerable,IdeaBlade.EntityModel.SaveOptions) operation with the specified list of entities and IdeaBlade.EntityModel.SaveOptions. |
Name | Description | |
---|---|---|
Cleared | Fired whenever this entityManager is cleared. | |
ConnectionStateChanged | Fired when the connection state of the EntityManager changes. | |
EntityChanged | Fired whenever an entity's state has changed in any significant manner. | |
EntityChanging | Fired whenever an entity's state is changing in any significant manner. | |
EntityManagerCreated | Event fired whenever a new EntityManager is created. | |
EntityServerError | Raised when an error occurs while accessing the EntityServer or backend data source. | |
Fetching | 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. | |
Queried | Occurs after the EntityManager has completed processing of a query. | |
Querying | Occurs before the EntityManager executes a query. | |
Saved | Occurs after the EntityManager has persisted changed entities. | |
Saving | Occurs when the EntityManager is preparing to save changes. |