File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
src/EFCore.MySql.Json.Microsoft Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 77using Pomelo . EntityFrameworkCore . MySql . Json . Microsoft . Storage . Internal ;
88using Microsoft . EntityFrameworkCore . Storage ;
99using Microsoft . Extensions . DependencyInjection ;
10+ using Pomelo . EntityFrameworkCore . MySql . Json . Microsoft . Infrastructure ;
11+ using Pomelo . EntityFrameworkCore . MySql . Json . Microsoft . Infrastructure . Internal ;
1012
1113namespace Pomelo . EntityFrameworkCore . MySql . Json . Microsoft . Design . Internal
1214{
@@ -26,6 +28,7 @@ public class MySqlJsonMicrosoftDesignTimeServices : IDesignTimeServices
2628 /// </summary>
2729 public virtual void ConfigureDesignTimeServices ( IServiceCollection serviceCollection )
2830 => serviceCollection
31+ . AddSingleton < IMysqlJsonOptions , DefaultMysqlJsonOptions > ( )
2932 . AddSingleton < IRelationalTypeMappingSourcePlugin , MySqlJsonMicrosoftTypeMappingSourcePlugin > ( )
3033 . AddSingleton < IProviderCodeGeneratorPlugin , MySqlJsonMicrosoftCodeGeneratorPlugin > ( ) ;
3134 }
Original file line number Diff line number Diff line change 88using Pomelo . EntityFrameworkCore . MySql . Json . Microsoft . Storage . Internal ;
99using Microsoft . EntityFrameworkCore . Storage ;
1010using Microsoft . EntityFrameworkCore . Utilities ;
11+ using Pomelo . EntityFrameworkCore . MySql . Json . Microsoft . Infrastructure ;
12+ using Pomelo . EntityFrameworkCore . MySql . Json . Microsoft . Infrastructure . Internal ;
1113using Pomelo . EntityFrameworkCore . MySql . Query . ExpressionTranslators . Internal ;
1214
1315// ReSharper disable once CheckNamespace
@@ -33,7 +35,9 @@ public static IServiceCollection AddEntityFrameworkMySqlJsonMicrosoft(
3335 . TryAdd < IMethodCallTranslatorPlugin , MySqlJsonMicrosoftMethodCallTranslatorPlugin > ( )
3436 . TryAdd < IMemberTranslatorPlugin , MySqlJsonMicrosoftMemberTranslatorPlugin > ( )
3537 . TryAddProviderSpecificServices (
36- x => x . TryAddScopedEnumerable < IMySqlJsonPocoTranslator , MySqlJsonMicrosoftPocoTranslator > ( ) ) ;
38+ x => x
39+ . TryAddSingleton < IMysqlJsonOptions , DefaultMysqlJsonOptions > ( )
40+ . TryAddScopedEnumerable < IMySqlJsonPocoTranslator , MySqlJsonMicrosoftPocoTranslator > ( ) ) ;
3741
3842 return serviceCollection ;
3943 }
You can’t perform that action at this time.
0 commit comments