Class KEFCoreTopicPartitionsAttribute
- Namespace
- MASES.EntityFrameworkCore.KNet.Metadata
- Assembly
- MASES.EntityFrameworkCore.KNet.dll
Overrides the number of partitions for the Kafka topic associated with this entity type. Takes precedence over DefaultNumPartitions. Applied at topic creation time (EnsureCreated()).
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public sealed class KEFCoreTopicPartitionsAttribute : Attribute
- Inheritance
-
KEFCoreTopicPartitionsAttribute
- Inherited Members
Constructors
KEFCoreTopicPartitionsAttribute(int)
Initializes a new instance of KEFCoreTopicPartitionsAttribute.
public KEFCoreTopicPartitionsAttribute(int numPartitions)
Parameters
numPartitionsintThe number of partitions for the topic. Must be greater than zero.
Properties
NumPartitions
The number of partitions for the Kafka topic associated with this entity type.
public int NumPartitions { get; }