From 4a652fb20a1e7db3f427bf0b41aef7979c134bcc Mon Sep 17 00:00:00 2001
From: masesdevelopers <94312179+masesdevelopers@users.noreply.github.com>
Date: Fri, 20 Oct 2023 18:46:06 +0200
Subject: [PATCH 1/7] Code documentation update
---
...KafkaCSharpRuntimeAnnotationCodeGenerator.cs | 7 ++++---
.../Design/Internal/KafkaDesignTimeServices.cs | 4 +---
.../Internal/KafkaLoggerExtensions.cs | 3 ---
.../Internal/KafkaLoggingDefinitions.cs | 3 ---
src/net/KEFCore/Diagnostics/KafkaEventId.cs | 3 ---
.../Extensions/KafkaDatabaseFacadeExtensions.cs | 3 ---
.../KafkaDbContextOptionsExtensions.cs | 3 ---
.../KafkaEntityTypeBuilderExtensions.cs | 3 ---
.../Extensions/KafkaEntityTypeExtensions.cs | 3 ---
.../KafkaServiceCollectionExtensions.cs | 3 ---
...afkaDbContextOptionsBuilderInfrastructure.cs | 5 +----
.../KafkaDbContextOptionsBuilder.cs | 3 ---
.../KEFCore/Query/Internal/KafkaQueryContext.cs | 3 ---
.../Query/Internal/KafkaQueryContextFactory.cs | 5 +----
...afkaShapedQueryCompilingExpressionVisitor.cs | 8 +++++---
.../KafkaShapedQueryExpressionVisitorFactory.cs | 5 ++++-
.../Query/Internal/KafkaTableExpression.cs | 11 ++++++++---
.../Internal/SingleResultShaperExpression.cs | 17 ++++++++++++-----
.../Internal/KafkaIntegerValueGenerator.cs | 10 ++++++----
.../Internal/KafkaValueGeneratorSelector.cs | 6 ++++--
20 files changed, 46 insertions(+), 62 deletions(-)
diff --git a/src/net/KEFCore/Design/Internal/KafkaCSharpRuntimeAnnotationCodeGenerator.cs b/src/net/KEFCore/Design/Internal/KafkaCSharpRuntimeAnnotationCodeGenerator.cs
index cfe7625a..f66804f8 100644
--- a/src/net/KEFCore/Design/Internal/KafkaCSharpRuntimeAnnotationCodeGenerator.cs
+++ b/src/net/KEFCore/Design/Internal/KafkaCSharpRuntimeAnnotationCodeGenerator.cs
@@ -1,6 +1,3 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-
/*
* Copyright 2023 MASES s.r.l.
*
@@ -32,6 +29,10 @@ namespace MASES.EntityFrameworkCore.KNet.Design.Internal;
///
public class KafkaCSharpRuntimeAnnotationCodeGenerator : CSharpRuntimeAnnotationCodeGenerator
{
+ ///
+ /// Default initializer
+ ///
+ ///
public KafkaCSharpRuntimeAnnotationCodeGenerator(
CSharpRuntimeAnnotationCodeGeneratorDependencies dependencies)
: base(dependencies)
diff --git a/src/net/KEFCore/Design/Internal/KafkaDesignTimeServices.cs b/src/net/KEFCore/Design/Internal/KafkaDesignTimeServices.cs
index a60384b1..b2f01b24 100644
--- a/src/net/KEFCore/Design/Internal/KafkaDesignTimeServices.cs
+++ b/src/net/KEFCore/Design/Internal/KafkaDesignTimeServices.cs
@@ -1,6 +1,3 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-
/*
* Copyright 2023 MASES s.r.l.
*
@@ -32,6 +29,7 @@ namespace MASES.EntityFrameworkCore.KNet.Design.Internal;
///
public class KafkaDesignTimeServices : IDesignTimeServices
{
+ ///
public virtual void ConfigureDesignTimeServices(IServiceCollection serviceCollection)
{
serviceCollection.AddEntityFrameworkKafkaDatabase();
diff --git a/src/net/KEFCore/Diagnostics/Internal/KafkaLoggerExtensions.cs b/src/net/KEFCore/Diagnostics/Internal/KafkaLoggerExtensions.cs
index c27cbeb6..329e7076 100644
--- a/src/net/KEFCore/Diagnostics/Internal/KafkaLoggerExtensions.cs
+++ b/src/net/KEFCore/Diagnostics/Internal/KafkaLoggerExtensions.cs
@@ -1,6 +1,3 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-
/*
* Copyright 2023 MASES s.r.l.
*
diff --git a/src/net/KEFCore/Diagnostics/Internal/KafkaLoggingDefinitions.cs b/src/net/KEFCore/Diagnostics/Internal/KafkaLoggingDefinitions.cs
index 0062a21d..3e4e541d 100644
--- a/src/net/KEFCore/Diagnostics/Internal/KafkaLoggingDefinitions.cs
+++ b/src/net/KEFCore/Diagnostics/Internal/KafkaLoggingDefinitions.cs
@@ -1,6 +1,3 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-
/*
* Copyright 2023 MASES s.r.l.
*
diff --git a/src/net/KEFCore/Diagnostics/KafkaEventId.cs b/src/net/KEFCore/Diagnostics/KafkaEventId.cs
index 09675ee4..8cc86b61 100644
--- a/src/net/KEFCore/Diagnostics/KafkaEventId.cs
+++ b/src/net/KEFCore/Diagnostics/KafkaEventId.cs
@@ -1,6 +1,3 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-
/*
* Copyright 2023 MASES s.r.l.
*
diff --git a/src/net/KEFCore/Extensions/KafkaDatabaseFacadeExtensions.cs b/src/net/KEFCore/Extensions/KafkaDatabaseFacadeExtensions.cs
index 1a2b08b1..8251b436 100644
--- a/src/net/KEFCore/Extensions/KafkaDatabaseFacadeExtensions.cs
+++ b/src/net/KEFCore/Extensions/KafkaDatabaseFacadeExtensions.cs
@@ -1,6 +1,3 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-
/*
* Copyright 2023 MASES s.r.l.
*
diff --git a/src/net/KEFCore/Extensions/KafkaDbContextOptionsExtensions.cs b/src/net/KEFCore/Extensions/KafkaDbContextOptionsExtensions.cs
index 866c9605..60d7df22 100644
--- a/src/net/KEFCore/Extensions/KafkaDbContextOptionsExtensions.cs
+++ b/src/net/KEFCore/Extensions/KafkaDbContextOptionsExtensions.cs
@@ -1,6 +1,3 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-
/*
* Copyright 2023 MASES s.r.l.
*
diff --git a/src/net/KEFCore/Extensions/KafkaEntityTypeBuilderExtensions.cs b/src/net/KEFCore/Extensions/KafkaEntityTypeBuilderExtensions.cs
index ba28565f..b0a6e462 100644
--- a/src/net/KEFCore/Extensions/KafkaEntityTypeBuilderExtensions.cs
+++ b/src/net/KEFCore/Extensions/KafkaEntityTypeBuilderExtensions.cs
@@ -1,6 +1,3 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-
/*
* Copyright 2023 MASES s.r.l.
*
diff --git a/src/net/KEFCore/Extensions/KafkaEntityTypeExtensions.cs b/src/net/KEFCore/Extensions/KafkaEntityTypeExtensions.cs
index 9a158759..6616190f 100644
--- a/src/net/KEFCore/Extensions/KafkaEntityTypeExtensions.cs
+++ b/src/net/KEFCore/Extensions/KafkaEntityTypeExtensions.cs
@@ -1,6 +1,3 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-
/*
* Copyright 2023 MASES s.r.l.
*
diff --git a/src/net/KEFCore/Extensions/KafkaServiceCollectionExtensions.cs b/src/net/KEFCore/Extensions/KafkaServiceCollectionExtensions.cs
index ef69994f..68aed60e 100644
--- a/src/net/KEFCore/Extensions/KafkaServiceCollectionExtensions.cs
+++ b/src/net/KEFCore/Extensions/KafkaServiceCollectionExtensions.cs
@@ -1,6 +1,3 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-
/*
* Copyright 2023 MASES s.r.l.
*
diff --git a/src/net/KEFCore/Infrastructure/IKafkaDbContextOptionsBuilderInfrastructure.cs b/src/net/KEFCore/Infrastructure/IKafkaDbContextOptionsBuilderInfrastructure.cs
index e1052d33..94d9cb54 100644
--- a/src/net/KEFCore/Infrastructure/IKafkaDbContextOptionsBuilderInfrastructure.cs
+++ b/src/net/KEFCore/Infrastructure/IKafkaDbContextOptionsBuilderInfrastructure.cs
@@ -1,7 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-
-/*
+/*
* Copyright 2023 MASES s.r.l.
*
* Licensed under the Apache License, Version 2.0 (the "License");
diff --git a/src/net/KEFCore/Infrastructure/KafkaDbContextOptionsBuilder.cs b/src/net/KEFCore/Infrastructure/KafkaDbContextOptionsBuilder.cs
index 934895b0..979f7598 100644
--- a/src/net/KEFCore/Infrastructure/KafkaDbContextOptionsBuilder.cs
+++ b/src/net/KEFCore/Infrastructure/KafkaDbContextOptionsBuilder.cs
@@ -1,6 +1,3 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-
/*
* Copyright 2023 MASES s.r.l.
*
diff --git a/src/net/KEFCore/Query/Internal/KafkaQueryContext.cs b/src/net/KEFCore/Query/Internal/KafkaQueryContext.cs
index 669a5a46..ad89bac5 100644
--- a/src/net/KEFCore/Query/Internal/KafkaQueryContext.cs
+++ b/src/net/KEFCore/Query/Internal/KafkaQueryContext.cs
@@ -1,6 +1,3 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-
/*
* Copyright 2023 MASES s.r.l.
*
diff --git a/src/net/KEFCore/Query/Internal/KafkaQueryContextFactory.cs b/src/net/KEFCore/Query/Internal/KafkaQueryContextFactory.cs
index 3adfba7a..7c65faad 100644
--- a/src/net/KEFCore/Query/Internal/KafkaQueryContextFactory.cs
+++ b/src/net/KEFCore/Query/Internal/KafkaQueryContextFactory.cs
@@ -1,6 +1,3 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-
/*
* Copyright 2023 MASES s.r.l.
*
@@ -45,6 +42,6 @@ public KafkaQueryContextFactory(
/// Dependencies for this service.
///
protected virtual QueryContextDependencies Dependencies { get; }
-
+ ///
public virtual QueryContext Create() => new KafkaQueryContext(Dependencies, _cluster);
}
diff --git a/src/net/KEFCore/Query/Internal/KafkaShapedQueryCompilingExpressionVisitor.cs b/src/net/KEFCore/Query/Internal/KafkaShapedQueryCompilingExpressionVisitor.cs
index 1d110592..f546d5a2 100644
--- a/src/net/KEFCore/Query/Internal/KafkaShapedQueryCompilingExpressionVisitor.cs
+++ b/src/net/KEFCore/Query/Internal/KafkaShapedQueryCompilingExpressionVisitor.cs
@@ -30,7 +30,9 @@ public partial class KafkaShapedQueryCompilingExpressionVisitor : ShapedQueryCom
{
private readonly Type _contextType;
private readonly bool _threadSafetyChecksEnabled;
-
+ ///
+ /// Default initilizer
+ ///
public KafkaShapedQueryCompilingExpressionVisitor(
ShapedQueryCompilingExpressionVisitorDependencies dependencies,
QueryCompilationContext queryCompilationContext)
@@ -39,7 +41,7 @@ public KafkaShapedQueryCompilingExpressionVisitor(
_contextType = queryCompilationContext.ContextType;
_threadSafetyChecksEnabled = dependencies.CoreSingletonOptions.AreThreadSafetyChecksEnabled;
}
-
+ ///
protected override Expression VisitExtension(Expression extensionExpression)
{
switch (extensionExpression)
@@ -53,7 +55,7 @@ protected override Expression VisitExtension(Expression extensionExpression)
return base.VisitExtension(extensionExpression);
}
-
+ ///
protected override Expression VisitShapedQuery(ShapedQueryExpression shapedQueryExpression)
{
var kafkaQueryExpression = (KafkaQueryExpression)shapedQueryExpression.QueryExpression;
diff --git a/src/net/KEFCore/Query/Internal/KafkaShapedQueryExpressionVisitorFactory.cs b/src/net/KEFCore/Query/Internal/KafkaShapedQueryExpressionVisitorFactory.cs
index e91741a5..7740210c 100644
--- a/src/net/KEFCore/Query/Internal/KafkaShapedQueryExpressionVisitorFactory.cs
+++ b/src/net/KEFCore/Query/Internal/KafkaShapedQueryExpressionVisitorFactory.cs
@@ -28,6 +28,9 @@ namespace MASES.EntityFrameworkCore.KNet.Query.Internal;
///
public class KafkaShapedQueryCompilingExpressionVisitorFactory : IShapedQueryCompilingExpressionVisitorFactory
{
+ ///
+ /// Default initializer
+ ///
public KafkaShapedQueryCompilingExpressionVisitorFactory(
ShapedQueryCompilingExpressionVisitorDependencies dependencies)
{
@@ -38,7 +41,7 @@ public KafkaShapedQueryCompilingExpressionVisitorFactory(
/// Dependencies for this service.
///
protected virtual ShapedQueryCompilingExpressionVisitorDependencies Dependencies { get; }
-
+ ///
public virtual ShapedQueryCompilingExpressionVisitor Create(QueryCompilationContext queryCompilationContext)
=> new KafkaShapedQueryCompilingExpressionVisitor(Dependencies, queryCompilationContext);
}
diff --git a/src/net/KEFCore/Query/Internal/KafkaTableExpression.cs b/src/net/KEFCore/Query/Internal/KafkaTableExpression.cs
index 7fd627da..a9239429 100644
--- a/src/net/KEFCore/Query/Internal/KafkaTableExpression.cs
+++ b/src/net/KEFCore/Query/Internal/KafkaTableExpression.cs
@@ -28,19 +28,24 @@ namespace MASES.EntityFrameworkCore.KNet.Query.Internal;
///
public class KafkaTableExpression : Expression, IPrintableExpression
{
+ ///
+ /// Default initializer
+ ///
public KafkaTableExpression(IEntityType entityType)
{
EntityType = entityType;
}
-
+ ///
public override Type Type
=> typeof(IEnumerable);
-
+ ///
+ /// associated to the
+ ///
public virtual IEntityType EntityType { get; }
public sealed override ExpressionType NodeType
=> ExpressionType.Extension;
-
+ ///
protected override Expression VisitChildren(ExpressionVisitor visitor)
=> this;
diff --git a/src/net/KEFCore/Query/Internal/SingleResultShaperExpression.cs b/src/net/KEFCore/Query/Internal/SingleResultShaperExpression.cs
index a4ab613d..d2273933 100644
--- a/src/net/KEFCore/Query/Internal/SingleResultShaperExpression.cs
+++ b/src/net/KEFCore/Query/Internal/SingleResultShaperExpression.cs
@@ -28,6 +28,9 @@ namespace MASES.EntityFrameworkCore.KNet.Query.Internal;
///
public class SingleResultShaperExpression : Expression, IPrintableExpression
{
+ ///
+ /// Default initializer
+ ///
public SingleResultShaperExpression(
Expression projection,
Expression innerShaper)
@@ -36,7 +39,7 @@ public SingleResultShaperExpression(
InnerShaper = innerShaper;
Type = innerShaper.Type;
}
-
+ ///
protected override Expression VisitChildren(ExpressionVisitor visitor)
{
var projection = visitor.Visit(Projection);
@@ -49,14 +52,18 @@ public virtual SingleResultShaperExpression Update(Expression projection, Expres
=> projection != Projection || innerShaper != InnerShaper
? new SingleResultShaperExpression(projection, innerShaper)
: this;
-
+ ///
public sealed override ExpressionType NodeType
=> ExpressionType.Extension;
-
+ ///
public override Type Type { get; }
-
+ ///
+ /// Projection
+ ///
public virtual Expression Projection { get; }
-
+ ///
+ /// Inner shaper
+ ///
public virtual Expression InnerShaper { get; }
void IPrintableExpression.Print(ExpressionPrinter expressionPrinter)
diff --git a/src/net/KEFCore/ValueGeneration/Internal/KafkaIntegerValueGenerator.cs b/src/net/KEFCore/ValueGeneration/Internal/KafkaIntegerValueGenerator.cs
index a2bda1e7..71c9d359 100644
--- a/src/net/KEFCore/ValueGeneration/Internal/KafkaIntegerValueGenerator.cs
+++ b/src/net/KEFCore/ValueGeneration/Internal/KafkaIntegerValueGenerator.cs
@@ -29,12 +29,14 @@ public class KafkaIntegerValueGenerator : ValueGenerator, IKafka
{
private readonly int _propertyIndex;
private long _current;
-
+ ///
+ /// Default initializer
+ ///
public KafkaIntegerValueGenerator(int propertyIndex)
{
_propertyIndex = propertyIndex;
}
-
+ ///
public virtual void Bump(object?[] row)
{
var newValue = (long)Convert.ChangeType(row[_propertyIndex]!, typeof(long));
@@ -44,10 +46,10 @@ public virtual void Bump(object?[] row)
Interlocked.Exchange(ref _current, newValue);
}
}
-
+ ///
public override TValue Next(EntityEntry entry)
=> (TValue)Convert.ChangeType(Interlocked.Increment(ref _current), typeof(TValue), CultureInfo.InvariantCulture);
-
+ ///
public override bool GeneratesTemporaryValues
=> false;
}
diff --git a/src/net/KEFCore/ValueGeneration/Internal/KafkaValueGeneratorSelector.cs b/src/net/KEFCore/ValueGeneration/Internal/KafkaValueGeneratorSelector.cs
index 4d57e3dc..d4546c56 100644
--- a/src/net/KEFCore/ValueGeneration/Internal/KafkaValueGeneratorSelector.cs
+++ b/src/net/KEFCore/ValueGeneration/Internal/KafkaValueGeneratorSelector.cs
@@ -28,7 +28,9 @@ namespace MASES.EntityFrameworkCore.KNet.ValueGeneration.Internal;
public class KafkaValueGeneratorSelector : ValueGeneratorSelector
{
private readonly IKafkaCluster _kafkaCluster;
-
+ ///
+ /// Default initializer
+ ///
public KafkaValueGeneratorSelector(
ValueGeneratorSelectorDependencies dependencies,
IKafkaDatabase kafkaDatabase)
@@ -36,7 +38,7 @@ public KafkaValueGeneratorSelector(
{
_kafkaCluster = kafkaDatabase.Cluster;
}
-
+ ///
public override ValueGenerator Select(IProperty property, IEntityType entityType)
=> property.GetValueGeneratorFactory() == null
&& property.ClrType.IsInteger()
From 3af7c8cd3e58ea42c9575c8efb0620df82f3daeb Mon Sep 17 00:00:00 2001
From: masesdevelopers <94312179+masesdevelopers@users.noreply.github.com>
Date: Fri, 20 Oct 2023 19:06:48 +0200
Subject: [PATCH 2/7] Partial documentation update
---
.../KafkaDbContextOptionsExtensions.cs | 12 +++++--
.../Storage/Internal/EntityTypeProducers.cs | 9 +++--
.../Storage/Internal/IEntityTypeProducer.cs | 13 ++++++--
.../KEFCore/Storage/Internal/IKafkaRowBag.cs | 7 +++-
.../KEFCore/Storage/Internal/IKafkaTable.cs | 33 ++++++++++++++-----
.../Storage/Internal/IKafkaTableFactory.cs | 10 +++++-
.../KEFCore/Storage/Internal/KafkaCluster.cs | 24 +++++++-------
.../Storage/Internal/KafkaClusterCache.cs | 8 +++--
.../Internal/KafkaClusterCacheExtensions.cs | 3 ++
.../KEFCore/Storage/Internal/KafkaDatabase.cs | 18 +++++-----
.../Storage/Internal/KafkaDatabaseCreator.cs | 21 +++++++-----
.../KEFCore/Storage/Internal/KafkaRowBag.cs | 19 ++++++++---
.../KEFCore/Storage/Internal/KafkaTable.cs | 28 ++++++++--------
.../Storage/Internal/KafkaTableFactory.cs | 8 +++--
.../Storage/Internal/KafkaTransaction.cs | 13 ++++----
.../Internal/KafkaTransactionManager.cs | 26 ++++++++-------
.../Storage/Internal/KafkaTypeMapping.cs | 5 ++-
.../Internal/KafkaTypeMappingSource.cs | 5 ++-
.../Internal/IKafkaIntegerValueGenerator.cs | 3 ++
19 files changed, 175 insertions(+), 90 deletions(-)
diff --git a/src/net/KEFCore/Extensions/KafkaDbContextOptionsExtensions.cs b/src/net/KEFCore/Extensions/KafkaDbContextOptionsExtensions.cs
index 60d7df22..667c759a 100644
--- a/src/net/KEFCore/Extensions/KafkaDbContextOptionsExtensions.cs
+++ b/src/net/KEFCore/Extensions/KafkaDbContextOptionsExtensions.cs
@@ -122,19 +122,25 @@ var coreOptionsExtension
((IDbContextOptionsBuilderInfrastructure)optionsBuilder).AddOrUpdateExtension(coreOptionsExtension);
}
-
+ ///
+ /// Creates a serializer for keys
+ ///
public static Type SerializerTypeForKey(this IKafkaSingletonOptions options, IEntityType entityType)
{
var primaryKey = entityType.FindPrimaryKey()!.GetKeyType();
return options.KeySerializationType.MakeGenericType(primaryKey);
}
-
+ ///
+ /// Creates a serialzier for values
+ ///
public static Type SerializerTypeForValue(this IKafkaSingletonOptions options, IEntityType entityType)
{
var primaryKey = entityType.FindPrimaryKey()!.GetKeyType();
return options.ValueSerializationType.MakeGenericType(ValueContainerType(options, entityType));
}
-
+ ///
+ /// Create the ValueContainer
+ ///
public static Type ValueContainerType(this IKafkaSingletonOptions options, IEntityType entityType)
{
var primaryKey = entityType.FindPrimaryKey()!.GetKeyType();
diff --git a/src/net/KEFCore/Storage/Internal/EntityTypeProducers.cs b/src/net/KEFCore/Storage/Internal/EntityTypeProducers.cs
index 8ebfa800..b309948c 100644
--- a/src/net/KEFCore/Storage/Internal/EntityTypeProducers.cs
+++ b/src/net/KEFCore/Storage/Internal/EntityTypeProducers.cs
@@ -30,9 +30,10 @@ namespace MASES.EntityFrameworkCore.KNet.Storage.Internal;
///
public class EntityTypeProducers
{
- static IEntityTypeProducer? _globalProducer = null;
static readonly ConcurrentDictionary _producers = new();
-
+ ///
+ /// Allocates a new
+ ///
public static IEntityTypeProducer Create(IEntityType entityType, IKafkaCluster cluster)
where TKey : notnull
where TValueContainer : class, IValueContainer
@@ -41,7 +42,9 @@ public static IEntityTypeProducer Create CreateProducerLocal(entityType, cluster));
}
-
+ ///
+ /// Dispose a previously allocated
+ ///
public static void Dispose(IEntityTypeProducer producer)
{
if (!_producers.TryRemove(new KeyValuePair(producer.EntityType, producer)))
diff --git a/src/net/KEFCore/Storage/Internal/IEntityTypeProducer.cs b/src/net/KEFCore/Storage/Internal/IEntityTypeProducer.cs
index 57d1a720..b88487cc 100644
--- a/src/net/KEFCore/Storage/Internal/IEntityTypeProducer.cs
+++ b/src/net/KEFCore/Storage/Internal/IEntityTypeProducer.cs
@@ -30,9 +30,18 @@ namespace MASES.EntityFrameworkCore.KNet.Storage.Internal;
///
public interface IEntityTypeProducer : IDisposable
{
+ ///
+ /// Associated
+ ///
IEntityType EntityType { get; }
-
+ ///
+ /// Stores an
+ ///
+ /// The to be stored
+ ///
IEnumerable> Commit(IEnumerable records);
-
+ ///
+ /// The current s
+ ///
IEnumerable ValueBuffers { get; }
}
diff --git a/src/net/KEFCore/Storage/Internal/IKafkaRowBag.cs b/src/net/KEFCore/Storage/Internal/IKafkaRowBag.cs
index cf3650b5..2c5945e4 100644
--- a/src/net/KEFCore/Storage/Internal/IKafkaRowBag.cs
+++ b/src/net/KEFCore/Storage/Internal/IKafkaRowBag.cs
@@ -27,7 +27,12 @@ namespace MASES.EntityFrameworkCore.KNet.Storage.Internal;
///
public interface IKafkaRowBag
{
+ ///
+ /// The with changes
+ ///
IUpdateEntry UpdateEntry { get; }
-
+ ///
+ /// The topic data will be stored
+ ///
string AssociatedTopicName { get; }
}
diff --git a/src/net/KEFCore/Storage/Internal/IKafkaTable.cs b/src/net/KEFCore/Storage/Internal/IKafkaTable.cs
index 55cb0b97..2c65ab4c 100644
--- a/src/net/KEFCore/Storage/Internal/IKafkaTable.cs
+++ b/src/net/KEFCore/Storage/Internal/IKafkaTable.cs
@@ -29,21 +29,36 @@ namespace MASES.EntityFrameworkCore.KNet.Storage.Internal;
///
public interface IKafkaTable : IEntityTypeProducer
{
+ ///
+ /// Create snapshot
+ ///
IReadOnlyList