mirror of
https://github.com/zoriya/EntityFrameworkCore.Projectables.git
synced 2026-05-28 12:43:17 +00:00
Add test verification files
This commit is contained in:
+2
-2
@@ -54,7 +54,7 @@ namespace EntityFrameworkCore.Projectables.Infrastructure.Internal
|
|||||||
var targetDescriptor = services.FirstOrDefault(x => x.ServiceType == typeof(IQueryCompiler));
|
var targetDescriptor = services.FirstOrDefault(x => x.ServiceType == typeof(IQueryCompiler));
|
||||||
if (targetDescriptor is null)
|
if (targetDescriptor is null)
|
||||||
{
|
{
|
||||||
throw new InvalidOperationException("No QueryProvider is configured yet. Please make sure to configure a database provider first"); ;
|
throw new InvalidOperationException("No QueryProvider is configured yet. Please make sure to configure a database provider first");
|
||||||
}
|
}
|
||||||
|
|
||||||
var decoratorObjectFactory = ActivatorUtilities.CreateFactory(typeof(CustomQueryCompiler), new[] { targetDescriptor.ServiceType });
|
var decoratorObjectFactory = ActivatorUtilities.CreateFactory(typeof(CustomQueryCompiler), new[] { targetDescriptor.ServiceType });
|
||||||
@@ -70,7 +70,7 @@ namespace EntityFrameworkCore.Projectables.Infrastructure.Internal
|
|||||||
var targetDescriptor = services.FirstOrDefault(x => x.ServiceType == typeof(IQueryTranslationPreprocessorFactory));
|
var targetDescriptor = services.FirstOrDefault(x => x.ServiceType == typeof(IQueryTranslationPreprocessorFactory));
|
||||||
if (targetDescriptor is null)
|
if (targetDescriptor is null)
|
||||||
{
|
{
|
||||||
throw new InvalidOperationException("No QueryTranslationPreprocessorFactory is configured yet. Please make sure to configure a database provider first"); ;
|
throw new InvalidOperationException("No QueryTranslationPreprocessorFactory is configured yet. Please make sure to configure a database provider first");
|
||||||
}
|
}
|
||||||
|
|
||||||
var decoratorObjectFactory = ActivatorUtilities.CreateFactory(typeof(CustomQueryTranslationPreprocessorFactory), new[] { targetDescriptor.ServiceType });
|
var decoratorObjectFactory = ActivatorUtilities.CreateFactory(typeof(CustomQueryTranslationPreprocessorFactory), new[] { targetDescriptor.ServiceType });
|
||||||
|
|||||||
+2
@@ -0,0 +1,2 @@
|
|||||||
|
SELECT 4
|
||||||
|
FROM [Concrete] AS [c]
|
||||||
+3
@@ -0,0 +1,3 @@
|
|||||||
|
SELECT [c].[Id]
|
||||||
|
FROM [BaseProvider] AS [b]
|
||||||
|
INNER JOIN [Concrete] AS [c] ON [b].[Id] = [c].[BaseProviderId]
|
||||||
Reference in New Issue
Block a user