Epam.Kafka.PubSub.EntityFramework6
2.5.213-rc
Prefix Reserved
See the version list below for details.
dotnet add package Epam.Kafka.PubSub.EntityFramework6 --version 2.5.213-rc
NuGet\Install-Package Epam.Kafka.PubSub.EntityFramework6 -Version 2.5.213-rc
<PackageReference Include="Epam.Kafka.PubSub.EntityFramework6" Version="2.5.213-rc" />
<PackageVersion Include="Epam.Kafka.PubSub.EntityFramework6" Version="2.5.213-rc" />
<PackageReference Include="Epam.Kafka.PubSub.EntityFramework6" />
paket add Epam.Kafka.PubSub.EntityFramework6 --version 2.5.213-rc
#r "nuget: Epam.Kafka.PubSub.EntityFramework6, 2.5.213-rc"
#:package Epam.Kafka.PubSub.EntityFramework6@2.5.213-rc
#addin nuget:?package=Epam.Kafka.PubSub.EntityFramework6&version=2.5.213-rc&prerelease
#tool nuget:?package=Epam.Kafka.PubSub.EntityFramework6&version=2.5.213-rc&prerelease
Epam.Kafka.PubSub.EntityFramework6
About
Epam.Kafka.PubSub.EntityFramework6 package provides entity framework 6 implementation for key abstractions defined in Epam.Kafka.PubSub.
Key Features
- Base abstract classes
DbContextSubscriptionHandler<TKey, TValue, TContext>,DbContextEntitySubscriptionHandler<TKey, TValue, TContext TEntity>to help with implementation ofISubscriptionHandler<TKey, TValue>that read data from KAFKA topics and save it to database usingDbContext. - Default implementation of
IExternalOffsetsStoragethat store offsets in database viaDbContext.TryAddKafkaDbContextStateextension method to register it inIServiceCollection. - Base abstract classes
DbContextPublicationHandler<TKey, TValue, TEntity, TContext>andDbContextEntityPublicationHandler<TKey, TValue, TEntity, TContext>to help with implementation ofIPublicationHandler<TKey, TValue>that read data from database usingDbContextand publish it to kafka topics.
How to Use
Store subscription offsets
Prepare context.
public class SampleDbContext : DbContext, IKafkaStateDbContext
{
public DbSet<KafkaTopicState> KafkaTopicStates => this.Set<KafkaTopicState>();
protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
base.OnModelCreating(modelBuilder);
modelBuilder.AddKafkaState();
}
}
Register services and setup topic partition assignment and offsets storage for subscription.
services.TryAddKafkaDbContextState<SampleDbContext>();
KafkaBuilder kafkaBuilder = services.AddKafka();
kafkaBuilder.AddSubscription<string, KafkaEntity, SubscriptionHandlerSample>("Sample")
.WithSubscribeAndExternalOffsets();
Publish data from database to kafka
Optionally derive entity from IKafkaPublicationEntity interface to use default state management.
public class SamplePublicationEntity : IKafkaPublicationEntity
{
public KafkaPublicationState KafkaPubState { get; set; }
public DateTime KafkaPubNbf { get; set; }
}
Create publication handler derived from DbContextEntityPublicationHandler<TKey, TValue, TEntity, TContext> for entity with default state management or from DbContextPublicationHandler<TKey, TValue, TEntity, TContext> for custom state management.
Setup publication
KafkaBuilder kafkaBuilder = services.AddKafka();
kafkaBuilder.AddPublication<string, KafkaEntity, SamplePublicationHandler>("Sample");
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 is compatible. |
| .NET Framework | net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.6.2
- EntityFramework (>= 6.5.1)
- Epam.Kafka.PubSub (>= 2.5.213-rc)
-
.NETStandard 2.1
- EntityFramework (>= 6.5.1)
- Epam.Kafka.PubSub (>= 2.5.213-rc)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.5.260 | 220 | 6/23/2025 |
| 2.5.251-rc | 187 | 6/23/2025 |
| 2.5.246-rc | 141 | 2/25/2025 |
| 2.5.244 | 158 | 2/12/2025 |
| 2.5.241-rc | 156 | 2/12/2025 |
| 2.5.240-rc | 135 | 2/11/2025 |
| 2.5.239-rc | 124 | 2/10/2025 |
| 2.5.237-rc | 133 | 2/7/2025 |
| 2.5.236-rc | 145 | 2/7/2025 |
| 2.5.233 | 158 | 2/7/2025 |
| 2.5.229 | 147 | 2/6/2025 |
| 2.5.225-rc | 136 | 2/6/2025 |
| 2.5.224-rc | 135 | 2/6/2025 |
| 2.5.219-rc | 144 | 2/4/2025 |
| 2.5.218-rc | 133 | 2/4/2025 |
| 2.5.215-rc | 131 | 2/3/2025 |
| 2.5.214-rc | 152 | 2/3/2025 |
| 2.5.213-rc | 145 | 1/31/2025 |
| 2.5.210-rc | 143 | 1/30/2025 |
| 2.5.209-rc | 136 | 1/29/2025 |