Table of Contents

Class EntityTypeProducer<TKey, TValueContainer, TJVMKey, TJVMValueContainer>

Namespace
MASES.EntityFrameworkCore.KNet.Storage.Internal
Assembly
MASES.EntityFrameworkCore.KNet.dll

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public class EntityTypeProducer<TKey, TValueContainer, TJVMKey, TJVMValueContainer> : IEntityTypeProducer<TKey>, ITransactionalEntityTypeProducer, IEntityTypeProducer, IDisposable where TKey : notnull where TValueContainer : class, IValueContainer<TKey>

Type Parameters

TKey
TValueContainer
TJVMKey
TJVMValueContainer
Inheritance
EntityTypeProducer<TKey, TValueContainer, TJVMKey, TJVMValueContainer>
Implements
Inherited Members

Constructors

EntityTypeProducer(IKEFCoreDatabase, IEntityType)

Default initializer

public EntityTypeProducer(IKEFCoreDatabase database, IEntityType entityType)

Parameters

database IKEFCoreDatabase
entityType IEntityType

Properties

EntityType

Associated IEntityType

public virtual IEntityType EntityType { get; }

Property Value

IEntityType

Methods

Commit(IList<Future<RecordMetadata>>?, IEnumerable<IKEFCoreRowBag>)

Stores an IEnumerable<T>

public void Commit(IList<Future<RecordMetadata>>? futures, IEnumerable<IKEFCoreRowBag> records)

Parameters

futures IList<Future<RecordMetadata>>

The Future<V> with RecordMetadata generated from Commit(IList<Future<RecordMetadata>>?, IEnumerable<IKEFCoreRowBag>)

records IEnumerable<IKEFCoreRowBag>

The IEnumerable<T> to be stored

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

EnsureSynchronized(long)

Verify if local instance is synchronized with the IKEFCoreCluster instance

public bool? EnsureSynchronized(long timeout)

Parameters

timeout long

Returns

bool?

Exist(TKey)

Check if a key exist

public bool Exist(TKey key)

Parameters

key TKey

The key to check for existence

Returns

bool

true if the key exist, false otherwise

GetValueBuffer(IKEFCoreDatabase, object?[]?)

Retrieve anValueBuffer associated to keyValues

public ValueBuffer? GetValueBuffer(IKEFCoreDatabase database, object?[]? keyValues)

Parameters

database IKEFCoreDatabase

The IKEFCoreDatabase requesting the data

keyValues object[]

The key

Returns

ValueBuffer?

An IEnumerable<T>

GetValueBuffers(IKEFCoreDatabase)

Retrieve an IEnumerable<T>

public IEnumerable<ValueBuffer> GetValueBuffers(IKEFCoreDatabase database)

Parameters

database IKEFCoreDatabase

The IKEFCoreDatabase requesting the data

Returns

IEnumerable<ValueBuffer>

An IEnumerable<T>

GetValueBuffersByPrefix(IKEFCoreDatabase, object?[]?)

Retrieve the ValueBuffer using prefix scan

public IEnumerable<ValueBuffer> GetValueBuffersByPrefix(IKEFCoreDatabase database, object?[]? prefixValues)

Parameters

database IKEFCoreDatabase

The IKEFCoreDatabase requesting the data

prefixValues object[]

The prefix

Returns

IEnumerable<ValueBuffer>

An IEnumerable<T> of ValueBuffer

GetValueBuffersRange(IKEFCoreDatabase, object?[]?, object?[]?)

Retrieve an IEnumerable<T> in the range rangeStart/rangeEnd

public IEnumerable<ValueBuffer> GetValueBuffersRange(IKEFCoreDatabase database, object?[]? rangeStart, object?[]? rangeEnd)

Parameters

database IKEFCoreDatabase

The IKEFCoreDatabase requesting the data

rangeStart object[]

The start key

rangeEnd object[]

The end key

Returns

IEnumerable<ValueBuffer>

An IEnumerable<T>

GetValueBuffersReverse(IKEFCoreDatabase)

Retrieve a reverse order IEnumerable<T>

public IEnumerable<ValueBuffer> GetValueBuffersReverse(IKEFCoreDatabase database)

Parameters

database IKEFCoreDatabase

The IKEFCoreDatabase requesting the data

Returns

IEnumerable<ValueBuffer>

An IEnumerable<T>

GetValueBuffersReverseRange(IKEFCoreDatabase, object?[]?, object?[]?)

Retrieve an IEnumerable<T> in the reverse range rangeStart/rangeEnd

public IEnumerable<ValueBuffer> GetValueBuffersReverseRange(IKEFCoreDatabase database, object?[]? rangeStart, object?[]? rangeEnd)

Parameters

database IKEFCoreDatabase

The IKEFCoreDatabase requesting the data

rangeStart object[]

The start key

rangeEnd object[]

The end key

Returns

IEnumerable<ValueBuffer>

An IEnumerable<T>

Register(IKEFCoreDatabase)

Register an instance of IKEFCoreDatabase in an instance of IKEFCoreCluster

public virtual void Register(IKEFCoreDatabase database)

Parameters

database IKEFCoreDatabase

The instance of IKEFCoreDatabase to be registered

Start(IKEFCoreDatabase)

Starts the IEntityTypeProducer instance

public void Start(IKEFCoreDatabase database)

Parameters

database IKEFCoreDatabase

The IKEFCoreDatabase requesting the operation

TryAddKey(object[])

Try add a new item based on the values associated to the keyValues

public void TryAddKey(object[] keyValues)

Parameters

keyValues object[]

The key values to manage

TryGetProperties(TKey, out IDictionary<string, object?>, out IDictionary<string, object?>)

public bool TryGetProperties(TKey key, out IDictionary<string, object?> properties, out IDictionary<string, object?> complexProperties)

Parameters

key TKey
properties IDictionary<string, object>
complexProperties IDictionary<string, object>

Returns

bool

TryGetValueBuffer(TKey, out ValueBuffer)

Returns the values associated to the key

public bool TryGetValueBuffer(TKey key, out ValueBuffer valueBuffer)

Parameters

key TKey

The key to retrieve

valueBuffer ValueBuffer

A ValueBuffer containing the information, or null otherwise

Returns

bool

true if the key exist, false otherwise

Unregister(IKEFCoreDatabase)

Unregister a previously registered instance of IKEFCoreDatabase from an instance of IKEFCoreCluster

public virtual void Unregister(IKEFCoreDatabase database)

Parameters

database IKEFCoreDatabase

The instance of IKEFCoreDatabase to be unregistered