Table of Contents

Class KEFCoreDatabaseFacadeExtensions

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

KEFCore specific extension methods for Database.

public static class KEFCoreDatabaseFacadeExtensions
Inheritance
KEFCoreDatabaseFacadeExtensions
Inherited Members

Methods

IsKEFCore(DatabaseFacade)

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

public static bool IsKEFCore(this DatabaseFacade database)

Parameters

database DatabaseFacade

The facade from Database.

Returns

bool

true if the KEFCore 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.