Condividi tramite


Store Class

Definition

Extends Store with immutability support

public ref class Store : IDisposable, IServiceProvider
public class Store : IDisposable, IServiceProvider
type Store = class
    interface IServiceProvider
    interface IDisposable
Public Class Store
Implements IDisposable, IServiceProvider
Inheritance
Store
Implements

Constructors

Store(IServiceProvider, Dictionary<Object,Object>, Type[])

Creates an instance of the Store class which delegates IServiceProvider implementation to the given serviceProvider.

Store(IServiceProvider, Type[])

Creates an instance of the Store class.

Store(Type[])

Creates an instance of the Store class.

Properties

ChangeSource

The current change source for operations in this store

CurrentContext

Get current Context of the Store

DefaultPartition

The default Partition for the Store

DemandLoading

Tells if the store is currently demand loading a relationship

Disposed

indicates true when the store has been disposed

DomainDataDirectory

Gets domain information directory of the store.

DomainModels

Gets a collection of domain models in this store.

ElementDirectory

Gets directory of elements contained within the store.

ElementFactory

The ElementFactory for the model

EventManagerDirectory

The EventManagerDirectory for the model

Id

Gets the Id of this store.

InRedo

Reports whether the Store's current context is in undo

InSerializationTransaction

Indicates that the store has a currently active serialization transaction in the transaction stack

InUndo

Reports whether the Store's current context is in undo

InUndoRedoOrRollback

Reports whether the Store's current context is in undo, redo or rollback

Partitions

Collection of Partition objects used in Store

PartitionsAlternate

List of Partition objects (that use the AlternateKey) used in Store. This collection is maintained by setting the property on the AlternateKey value of the partition object.

PropertyBag

Get the property bag for this store

RuleManager

Gets the rule manager.

SerializerDirectory

The default serialization directory for this store

ShuttingDown

indicates that the store will be shutting down.

TransactionActive

Indicates that the store has a currently active transaction. This is true when a transaction is open through the time all events have finished firing.

TransactionLogs

get the current list of transaction logs for this store

TransactionManager

The TransactionManager for the model

UndoManager

The UndoManager for the Default Context.

Version

The version of the Store

Methods

AddMonikerResolver(Guid, IMonikerResolver)

Register a new IMonikerResolver for the given DomainModel. If there's an old resolver registered for this DomainModel, it will be replaced by the new one. Setting the IMonikerResolver to null will remove the resolver associated with the given DomainModel.

DefaultPartitionForClass(Guid)

Return the partition into which new elements of the specified class should be created by default.

Dispose()

Dispose method

FindDomainModel(Guid)

Finds domain model by Id.

FindMonikerResolver(Guid)

Gets the IMonikerResolver registered for the given DomainModel. Returns null if no IMonikerResolver is registered with this model.

GetClosurePrototypeGroup(ICollection<ModelElement>, ClosureType, Boolean)

Creates an ElementGroupPrototype in the DefaultPartition of the given closure type based on the given list of root Elements

GetClosurePrototypeGroup(ICollection<ModelElement>, ClosureType)

Creates an ElementGroupPrototype in the DefaultPartition of the given closure type based on the given list of root Elements

GetDomainModel(Guid)

Gets domain model by its Id. This method will throw if domain model if not found.

GetDomainModel<T>()

Gets domain model instance of specified type.

GetService(Type)

Get Service.

LoadDomainModels(Type[])

Create all the domain-data for the domain models contained in the passed DomainModels.

PopContext()

Pop current context off the top of the stack

PushContext(Context)

Push new Context on top of store context stack

RegisterTransactionLog(TransactionLog)

Allows a client to register a transaction log that will be notified of events on this store

UnregisterTransactionLog(TransactionLog)

Allows a client to unregister a transaction log from being notified of events on this store

Events

StoreDisposing

Allows clients to receive StoreDisposing events

Extension Methods

GetLocks(Store)

Get the lock flags for this Store instance

IsLocked(Store, Locks)

Test whether this store has any of a specified set of locks

SetLocks(Store, Locks)

Set the lock flags of this Store instance

Applies to