Skip to content

Commit aea24e3

Browse files
progress
1 parent 1e9aadb commit aea24e3

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

NorthwindCRUD.sln

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "analysis-rules", "analysis-
2222
NorthwindCRUD.ruleset = NorthwindCRUD.ruleset
2323
EndProjectSection
2424
EndProject
25+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Infragistics.QueryBuilder.Executor", "..\Infragistics.QueryBuilder.Executor\Infragistics.QueryBuilder.Executor.csproj", "{BEC2BBD3-9A9E-B549-7020-0751B11B6AB9}"
26+
EndProject
2527
Global
2628
GlobalSection(SolutionConfigurationPlatforms) = preSolution
2729
Debug|Any CPU = Debug|Any CPU
@@ -36,6 +38,10 @@ Global
3638
{F2C392E4-219B-41F3-8010-10E69EBF434D}.Debug|Any CPU.Build.0 = Debug|Any CPU
3739
{F2C392E4-219B-41F3-8010-10E69EBF434D}.Release|Any CPU.ActiveCfg = Release|Any CPU
3840
{F2C392E4-219B-41F3-8010-10E69EBF434D}.Release|Any CPU.Build.0 = Release|Any CPU
41+
{BEC2BBD3-9A9E-B549-7020-0751B11B6AB9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
42+
{BEC2BBD3-9A9E-B549-7020-0751B11B6AB9}.Debug|Any CPU.Build.0 = Debug|Any CPU
43+
{BEC2BBD3-9A9E-B549-7020-0751B11B6AB9}.Release|Any CPU.ActiveCfg = Release|Any CPU
44+
{BEC2BBD3-9A9E-B549-7020-0751B11B6AB9}.Release|Any CPU.Build.0 = Release|Any CPU
3945
EndGlobalSection
4046
GlobalSection(SolutionProperties) = preSolution
4147
HideSolutionNode = FALSE

NorthwindCRUD/NorthwindCRUD.csproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<PackageReference Include="AutoMapper" Version="14.0.0" />
2424
<PackageReference Include="BCrypt.Net-Next" Version="4.0.3" />
2525
<PackageReference Include="GraphQL.AspNet" Version="0.12.2-beta" />
26-
<PackageReference Include="Infragistics.QueryBuilder.Executor" Version="0.1.1-prerelease.2" />
26+
<!--<PackageReference Include="Infragistics.QueryBuilder.Executor" Version="0.1.1-prerelease.2" />-->
2727
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="9.0.6" />
2828
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="9.0.6" />
2929
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="9.0.6">
@@ -53,4 +53,8 @@
5353
<CopyToPublishDirectory>Always</CopyToPublishDirectory>
5454
</None>
5555
</ItemGroup>
56+
57+
<ItemGroup>
58+
<ProjectReference Include="..\..\Infragistics.QueryBuilder.Executor\Infragistics.QueryBuilder.Executor.csproj" />
59+
</ItemGroup>
5660
</Project>

NorthwindCRUD/Program.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@ public static void Main(string[] args)
5959
Scheme = "bearer",
6060
});
6161

62+
option.UseOneOfForPolymorphism();
63+
64+
option.SelectSubTypesUsing(baseType =>
65+
{
66+
return typeof(QueryFilter).Assembly.GetTypes().Where(type => type.IsSubclassOf(baseType));
67+
});
68+
6269
option.SchemaFilter<EnumSchemaFilter>();
6370
option.OperationFilter<AuthResponsesOperationFilter>();
6471
option.EnableAnnotations();

0 commit comments

Comments
 (0)