Table of Contents

Class KEFCoreTransactionalAttribute

Namespace
MASES.EntityFrameworkCore.KNet.Metadata
Assembly
MASES.EntityFrameworkCore.KNet.dll

Assigns this entity type to a Kafka transaction group, enabling exactly-once semantics for all entities sharing the same TransactionGroup.

[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public sealed class KEFCoreTransactionalAttribute : Attribute
Inheritance
KEFCoreTransactionalAttribute
Inherited Members

Remarks

All entity types in the same group share a single KafkaProducer with a stable transactional.id equal to {ApplicationId}.{TransactionGroup}. Entity types without this attribute use the standard non-transactional producer path.

Constructors

KEFCoreTransactionalAttribute(string)

Initializes a new instance of KEFCoreTransactionalAttribute.

public KEFCoreTransactionalAttribute(string transactionGroup)

Parameters

transactionGroup string

The transaction group name. All entity types sharing this name will participate in the same Kafka transaction. Must be non-empty.

Properties

TransactionGroup

The transaction group name shared by all entity types participating in the same Kafka transaction.

public string TransactionGroup { get; }

Property Value

string