Skip to content

Commit

Permalink
CB-30 Fix DictionaryValueConverter
Browse files Browse the repository at this point in the history
  • Loading branch information
izzat5233 committed Jan 6, 2025
1 parent f972f74 commit 8cc494c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ namespace ChatbotBuilderApi.Persistence.Configurations.Converters;
/// So you would need to call <see cref="DbLoggerCategory.Update"/> explicitly on the entity.
/// </remarks>
public class DictionaryValueConverter<TKey, TValue> : ValueConverter<IReadOnlyDictionary<TKey, TValue>, string>
where TKey : notnull
{
public DictionaryValueConverter(
JsonConverter<TKey>? keyConverter = null,
Expand Down Expand Up @@ -49,6 +50,7 @@ internal static JsonSerializerOptions CreateOptions(
/// JSON converter for nullable dictionaries.
/// </summary>
public class NullableDictionaryValueConverter<TKey, TValue> : ValueConverter<IReadOnlyDictionary<TKey, TValue>?, string>
where TKey : notnull
{
public NullableDictionaryValueConverter(
JsonConverter<TKey>? keyConverter = null,
Expand Down

0 comments on commit 8cc494c

Please sign in to comment.