Table of Contents

Class KafkaDatabaseFacadeExtensions

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

Kafka specific extension methods for Database.

public static class KafkaDatabaseFacadeExtensions
Inheritance
KafkaDatabaseFacadeExtensions
Inherited Members

Methods

IsKafka(DatabaseFacade)

Returns true if the database provider currently in use is the Kafka provider.

public static bool IsKafka(this DatabaseFacade database)

Parameters

database DatabaseFacade

The facade from Database.

Returns

bool

true if the Kafka database is being used.

Remarks

This method can only be used after the DbContext has been configured because it is only then that the provider is known. This means that this method cannot be used in OnConfiguring(DbContextOptionsBuilder) because this is where application code sets the provider to use as part of configuring the context.

See The EF Core Kafka database provider for more information and examples.