Class LLBLGenDataContext
A data context for the LLBLGen infrastructure.
Inheritance
Implements
Inherited Members
Namespace: Kephas.Data.LLBLGen
Assembly: Kephas.Data.LLBLGen.dll
Syntax
[SupportedDataStoreKinds(new string[]{"LLBLGen"})]
public class LLBLGenDataContext : DataContextBase, ILLBLGenDataContext, IDataContext, IContext, IExpando, IDynamicMetaObjectProvider, IIndexable, ILoggable, IIdentifiable, IDisposable, IInitializable
Constructors
| Improve this Doc View SourceLLBLGenDataContext(ICompositionContext, IDataCommandProvider, IDataAccessAdapterFactory, IModelTypeResolver, IDataBehaviorProvider, IQueryFactoryProvider)
Initializes a new instance of the LLBLGenDataContext class.
Declaration
public LLBLGenDataContext(ICompositionContext compositionContext, IDataCommandProvider dataCommandProvider, IDataAccessAdapterFactory dataAccessAdapterFactory, IModelTypeResolver modelTypeResolver, IDataBehaviorProvider dataBehaviorProvider, IQueryFactoryProvider queryFactoryProvider)
Parameters
Type | Name | Description |
---|---|---|
ICompositionContext | compositionContext | The composition context. |
IDataCommandProvider | dataCommandProvider | The data command provider. |
IDataAccessAdapterFactory | dataAccessAdapterFactory | The data access adapter factory. |
IModelTypeResolver | modelTypeResolver | The model type resolver. |
IDataBehaviorProvider | dataBehaviorProvider | The data behavior provider. |
IQueryFactoryProvider | queryFactoryProvider | The query factory provider. |
Fields
| Improve this Doc View SourceLLBLGenDataStoreKind
The LLBLGen data store kind.
Declaration
public const string LLBLGenDataStoreKind = "LLBLGen"
Field Value
Type | Description |
---|---|
System.String |
Properties
| Improve this Doc View SourceDataAccessAdapter
Gets the data access adapter.
Declaration
public virtual DataAccessAdapterBase DataAccessAdapter { get; }
Property Value
Type | Description |
---|---|
SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterBase |
LocalCache
Gets the local cache where the session entities are stored.
Declaration
public IDataContextCache LocalCache { get; }
Property Value
Type | Description |
---|---|
IDataContextCache | The local cache. |
QueryFactory
Gets the meta-data for the construction of LINQ queries.
Declaration
public virtual IQueryFactory QueryFactory { get; }
Property Value
Type | Description |
---|---|
IQueryFactory |
Methods
| Improve this Doc View SourceCreateEntityEntry(Object, Nullable<ChangeState>)
Creates a new entity information.
Declaration
protected override IEntityEntry CreateEntityEntry(object entity, ChangeState? changeState = default(ChangeState? ))
Parameters
Type | Name | Description |
---|---|---|
System.Object | entity | The entity. |
System.Nullable<ChangeState> | changeState | The entity's change state. |
Returns
Type | Description |
---|---|
IEntityEntry | The new entity information. |
Overrides
| Improve this Doc View SourceQueryCore<T>(IQueryOperationContext)
Gets a query over the entity type for the given query operation context, if any is provided (core implementation).
Declaration
protected override IQueryable<T> QueryCore<T>(IQueryOperationContext queryOperationContext)
where T : class
Parameters
Type | Name | Description |
---|---|---|
IQueryOperationContext | queryOperationContext | Context for the query. |
Returns
Type | Description |
---|---|
System.Linq.IQueryable<T> | A query over the entity type. |
Type Parameters
Name | Description |
---|---|
T | The entity type. |
Overrides
| Improve this Doc View SourceResolveAttachConflict(IEntityEntry, Object, Boolean)
Resolves the attach conflict between an existing attached entity and a challenger.
Declaration
protected override IEntityEntry ResolveAttachConflict(IEntityEntry entityEntry, object entityChallenger, bool attachEntityGraph)
Parameters
Type | Name | Description |
---|---|---|
IEntityEntry | entityEntry | The entity information. |
System.Object | entityChallenger | The entity challenger. |
System.Boolean | attachEntityGraph |
|
Returns
Type | Description |
---|---|
IEntityEntry | An resolved IEntityEntry. |
Overrides
Remarks
By default, the entity challenger is ignored. A derived class may decide to update the existing entity with refreshed information.