Show / Hide Table of Contents

Class DataSpace

Container class for data contexts indexed by contained entity types.

Inheritance
System.Object
System.Dynamic.DynamicObject
ExpandoBase
Expando
Context
DataSpace
Implements
IDataSpace
IContext
IExpando
System.Dynamic.IDynamicMetaObjectProvider
IIndexable
ILoggable
System.Collections.Generic.IReadOnlyCollection<IDataContext>
System.Collections.Generic.IEnumerable<IDataContext>
System.Collections.IEnumerable
System.IDisposable
IInitializable
Inherited Members
Context.AmbientServices
Context.CompositionContext
Context.Identity
Context.Logger
Context.Dispose()
Context.ValidateIdentity(IIdentity, IIdentity)
Context.SetCompositionContext(ICompositionContext)
Context.SetAmbientServices(IAmbientServices)
ExpandoBase.Item[String]
ExpandoBase.GetDynamicMemberNames()
ExpandoBase.HasDynamicMember(String)
ExpandoBase.TryGetMember(GetMemberBinder, Object)
ExpandoBase.TrySetMember(SetMemberBinder, Object)
ExpandoBase.TryInvokeMember(InvokeMemberBinder, Object[], Object)
ExpandoBase.ToDictionary(Func<String, String>, Func<Object, Object>)
ExpandoBase.GetInnerObjectTypeInfo()
ExpandoBase.GetThisTypeInfo()
ExpandoBase.TryGetValue(String, Object)
ExpandoBase.TrySetValue(String, Object)
System.Dynamic.DynamicObject.GetMetaObject(System.Linq.Expressions.Expression)
System.Dynamic.DynamicObject.TryBinaryOperation(System.Dynamic.BinaryOperationBinder, System.Object, System.Object)
System.Dynamic.DynamicObject.TryConvert(System.Dynamic.ConvertBinder, System.Object)
System.Dynamic.DynamicObject.TryCreateInstance(System.Dynamic.CreateInstanceBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryDeleteIndex(System.Dynamic.DeleteIndexBinder, System.Object[])
System.Dynamic.DynamicObject.TryDeleteMember(System.Dynamic.DeleteMemberBinder)
System.Dynamic.DynamicObject.TryGetIndex(System.Dynamic.GetIndexBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryInvoke(System.Dynamic.InvokeBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TrySetIndex(System.Dynamic.SetIndexBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryUnaryOperation(System.Dynamic.UnaryOperationBinder, System.Object)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Data
Assembly: Kephas.Data.dll
Syntax
public class DataSpace : Context, IDataSpace, IContext, IExpando, IDynamicMetaObjectProvider, IIndexable, ILoggable, IReadOnlyCollection<IDataContext>, IEnumerable<IDataContext>, IEnumerable, IDisposable, IInitializable

Constructors

| Improve this Doc View Source

DataSpace(ICompositionContext, IDataContextFactory, IDataStoreProvider)

Initializes a new instance of the DataSpace class.

Declaration
public DataSpace(ICompositionContext compositionContext, IDataContextFactory dataContextFactory, IDataStoreProvider dataStoreProvider)
Parameters
Type Name Description
ICompositionContext compositionContext

Context for the composition.

IDataContextFactory dataContextFactory

The data context factory.

IDataStoreProvider dataStoreProvider

The data store provider.

| Improve this Doc View Source

DataSpace(ICompositionContext, IDataContextFactory, IDataStoreProvider, Boolean)

Initializes a new instance of the DataSpace class.

Declaration
protected DataSpace(ICompositionContext compositionContext, IDataContextFactory dataContextFactory, IDataStoreProvider dataStoreProvider, bool isThreadSafe)
Parameters
Type Name Description
ICompositionContext compositionContext

Context for the composition.

IDataContextFactory dataContextFactory

The data context factory.

IDataStoreProvider dataStoreProvider

The data store provider.

System.Boolean isThreadSafe

True if this object is thread safe.

Properties

| Improve this Doc View Source

Count

Gets the number of elements in the collection.

Declaration
public int Count { get; }
Property Value
Type Description
System.Int32

The number of elements in the collection.

Methods

| Improve this Doc View Source

ClearDataContextMap()

Clears the data context map.

Declaration
protected virtual void ClearDataContextMap()
| Improve this Doc View Source

Dispose(Boolean)

Releases the unmanaged resources used by the Kephas.Services.Context and optionally releases the managed resources.

Declaration
protected override void Dispose(bool disposing)
Parameters
Type Name Description
System.Boolean disposing

True to release both managed and unmanaged resources; false to release only unmanaged resources.

Overrides
Context.Dispose(Boolean)
| Improve this Doc View Source

GetDataContext(ITypeInfo, IContext)

Gets the data context for the provided entity type.

Declaration
protected virtual IDataContext GetDataContext(ITypeInfo entityType, IContext context)
Parameters
Type Name Description
ITypeInfo entityType

Type of the entity.

IContext context

Optional. The context.

Returns
Type Description
IDataContext

The data context.

| Improve this Doc View Source

GetDataContext(Type, IContext)

Gets the data context for the provided entity type.

Declaration
protected virtual IDataContext GetDataContext(Type entityType, IContext context)
Parameters
Type Name Description
System.Type entityType

Type of the entity.

IContext context

Optional. The context.

Returns
Type Description
IDataContext

The data context.

| Improve this Doc View Source

GetEnumerator()

Returns an enumerator that iterates through the collection.

Declaration
public IEnumerator<IDataContext> GetEnumerator()
Returns
Type Description
System.Collections.Generic.IEnumerator<IDataContext>

An enumerator that can be used to iterate through the collection.

| Improve this Doc View Source

Initialize(IContext)

Initializes the service.

Declaration
public virtual void Initialize(IContext context = null)
Parameters
Type Name Description
IContext context

An optional context for initialization.

Explicit Interface Implementations

| Improve this Doc View Source

IDataSpace.Item[ITypeInfo, IContext]

Gets the data context for the provided entity type.

Declaration
IDataContext IDataSpace.this[ITypeInfo entityType, IContext context] { get; }
Parameters
Type Name Description
ITypeInfo entityType

Type of the entity.

IContext context

Optional. The context.

Returns
Type Description
IDataContext

The data context.

| Improve this Doc View Source

IDataSpace.Item[Type, IContext]

Gets the data context for the provided entity type.

Declaration
IDataContext IDataSpace.this[Type entityType, IContext context] { get; }
Parameters
Type Name Description
System.Type entityType

Type of the entity.

IContext context

Optional. The context.

Returns
Type Description
IDataContext

The data context.

| Improve this Doc View Source

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type Description
System.Collections.IEnumerator

An System.Collections.IEnumerator object that can be used to iterate through the collection.

Implements

IDataSpace
IContext
IExpando
System.Dynamic.IDynamicMetaObjectProvider
IIndexable
ILoggable
System.Collections.Generic.IReadOnlyCollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
System.IDisposable
IInitializable

Extension Methods

DynamicObjectExtensions.SetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.GetPropertyValue(Object, String)
DynamicObjectExtensions.TryGetPropertyValue(Object, String, out Object)
DynamicObjectExtensions.GetRuntimeTypeInfo(Object)
DynamicObjectExtensions.ToDynamic(Object)
DynamicObjectExtensions.ToExpando(Object)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
EnumerableExtensions.ForEach<T>(IEnumerable<T>, Action<T>)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
MessageBrokerExtensions.CreateBrokeredMessageBuilder(IContext)
ContextExtensions.InitialData(IContext)
ContextExtensions.WithInitialData<TContext>(TContext, IEnumerable<(Object entity, ChangeState changeState)>)
ContextExtensions.WithInitialData<TContext>(TContext, IEnumerable<Object>)
ContextExtensions.WithInitialData<TContext>(TContext, IEnumerable<IChangeStateTrackableEntityEntry>)
DataSpaceExtensions.Query<T>(IDataSpace, IQueryOperationContext)
DataSpaceExtensions.GetEntityEntry<T>(IDataSpace, T)
DataSpaceExtensions.CreateAsync(IDataSpace, Type, CancellationToken)
DataSpaceExtensions.CreateAsync(IDataSpace, ICreateEntityContext, CancellationToken)
DataSpaceExtensions.CreateAsync<T>(IDataSpace, CancellationToken)
DataSpaceExtensions.CreateAsync<T>(IDataSpace, ICreateEntityContext, CancellationToken)
DataSpaceExtensions.FindAsync(IDataSpace, Type, Object, Boolean, CancellationToken)
DataSpaceExtensions.FindAsync(IDataSpace, IFindContext, CancellationToken)
DataSpaceExtensions.FindAsync<T>(IDataSpace, IFindContext, CancellationToken)
DataSpaceExtensions.FindAsync<T>(IDataSpace, Object, Boolean, CancellationToken)
DataSpaceExtensions.FindOneAsync(IDataSpace, IFindOneContext, CancellationToken)
DataSpaceExtensions.FindOneAsync<T>(IDataSpace, IFindOneContext, CancellationToken)
DataSpaceExtensions.FindOneAsync<T>(IDataSpace, Expression<Func<T, Boolean>>, Boolean, CancellationToken)
DataSpaceExtensions.PersistChangesAsync(IDataSpace, CancellationToken)
DataSpaceExtensions.DiscardChanges(IDataSpace)
DataSpaceExtensions.Delete<T>(IDataSpace, T[])
DataSpaceExtensions.Delete<T>(IDataSpace, IEnumerable<T>)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX