@@ -73,8 +73,7 @@ public static readonly IDictionary<Type, ServiceCharacteristics> RelationalServi
73
73
{ typeof ( ISelectExpressionFactory ) , new ServiceCharacteristics ( ServiceLifetime . Singleton ) } ,
74
74
{ typeof ( IExpressionFragmentTranslator ) , new ServiceCharacteristics ( ServiceLifetime . Singleton ) } ,
75
75
{ typeof ( ISqlTranslatingExpressionVisitorFactory ) , new ServiceCharacteristics ( ServiceLifetime . Singleton ) } ,
76
- { typeof ( IUpdateSqlGenerator ) , new ServiceCharacteristics ( ServiceLifetime . Scoped ) } ,
77
- { typeof ( ISingletonUpdateSqlGenerator ) , new ServiceCharacteristics ( ServiceLifetime . Singleton ) } ,
76
+ { typeof ( IUpdateSqlGenerator ) , new ServiceCharacteristics ( ServiceLifetime . Singleton ) } ,
78
77
{ typeof ( IMemberTranslator ) , new ServiceCharacteristics ( ServiceLifetime . Singleton ) } ,
79
78
{ typeof ( ICompositeMethodCallTranslator ) , new ServiceCharacteristics ( ServiceLifetime . Singleton ) } ,
80
79
{ typeof ( IQuerySqlGeneratorFactory ) , new ServiceCharacteristics ( ServiceLifetime . Singleton ) } ,
@@ -169,15 +168,6 @@ public override EntityFrameworkServicesBuilder TryAddCoreServices()
169
168
TryAdd < IEvaluatableExpressionFilter , RelationalEvaluatableExpressionFilter > ( ) ;
170
169
TryAdd < IRelationalTransactionFactory , RelationalTransactionFactory > ( ) ;
171
170
172
- TryAdd < ISingletonUpdateSqlGenerator > (
173
- p =>
174
- {
175
- using ( var scope = p . CreateScope ( ) )
176
- {
177
- return scope . ServiceProvider . GetService < IUpdateSqlGenerator > ( ) ;
178
- }
179
- } ) ;
180
-
181
171
ServiceCollectionMap . GetInfrastructure ( )
182
172
. AddDependencySingleton < RelationalCompositeMemberTranslatorDependencies > ( )
183
173
. AddDependencySingleton < RelationalSqlGenerationHelperDependencies > ( )
0 commit comments