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>, IEntityTypeProducer, IDisposable where TKey : notnull where TValueContainer : class, IValueContainer<TKey>
Type Parameters
TKeyTValueContainerTJVMKeyTJVMValueContainer
- Inheritance
-
EntityTypeProducer<TKey, TValueContainer, TJVMKey, TJVMValueContainer>
- Implements
-
IEntityTypeProducer<TKey>
- Inherited Members
Constructors
EntityTypeProducer(IEntityType, IKafkaCluster)
Default initializer
public EntityTypeProducer(IEntityType entityType, IKafkaCluster cluster)
Parameters
entityTypeIEntityTypeclusterIKafkaCluster
Properties
EntityType
Associated IEntityType
public virtual IEntityType EntityType { get; }
Property Value
ValueBuffers
The current ValueBuffers
public IEnumerable<ValueBuffer> ValueBuffers { get; }
Property Value
Methods
Commit(IEnumerable<IKafkaRowBag>)
Stores an IEnumerable<T>
public IEnumerable<Future<RecordMetadata>> Commit(IEnumerable<IKafkaRowBag> records)
Parameters
recordsIEnumerable<IKafkaRowBag>The IEnumerable<T> to be stored
Returns
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Exist(TKey)
Che if a key exist
public bool Exist(TKey key)
Parameters
keyTKeyThe key to check for existance
Returns
TryGetValue(TKey, out ValueBuffer)
Returns the values associated to the key
public bool TryGetValue(TKey key, out ValueBuffer valueBuffer)
Parameters
keyTKeyThe key to retrieve
valueBufferValueBufferA ValueBuffer containing the information, or null otherwise