File tree Expand file tree Collapse file tree 2 files changed +12
-17
lines changed
samples/datasync-server/src/Sample.Datasync.Server Expand file tree Collapse file tree 2 files changed +12
-17
lines changed Original file line number Diff line number Diff line change 3333 _ = builder . Services . AddSwaggerGen ( options => options . AddDatasyncControllers ( ) ) ;
3434}
3535
36- if ( openApiEnabled )
37- {
38- _ = builder . Services . AddOpenApi ( ) ;
39- }
36+ // if (openApiEnabled)
37+ // {
38+ // _ = builder.Services.AddOpenApi(options => options.AddDatasyncTransformers() );
39+ // }
4040
4141WebApplication app = builder . Build ( ) ;
4242
6262app . UseAuthorization ( ) ;
6363app . MapControllers ( ) ;
6464
65- if ( openApiEnabled )
66- {
67- _ = app . MapOpenApi ( pattern : "swagger/{documentName}/swagger.json" ) ;
68- }
65+ // if (openApiEnabled)
66+ // {
67+ // _ = app.MapOpenApi(pattern: "swagger/{documentName}/swagger.json");
68+ // }
6969
7070app . Run ( ) ;
Original file line number Diff line number Diff line change 77 </PropertyGroup >
88
99 <ItemGroup >
10+ <PackageReference Include =" CommunityToolkit.Datasync.Server" Version =" 9.0.0" />
11+ <PackageReference Include =" CommunityToolkit.Datasync.Server.EntityFrameworkCore" Version =" 9.0.0" />
12+ <PackageReference Include =" CommunityToolkit.Datasync.Server.NSwag" Version =" 9.0.0" />
13+ <PackageReference Include =" CommunityToolkit.Datasync.Server.Swashbuckle" Version =" 9.0.0" />
1014 <PackageReference Include =" Microsoft.AspNetCore.OpenApi" Version =" 9.0.1" />
1115 <PackageReference Include =" Microsoft.EntityFrameworkCore.SqlServer" Version =" 9.0.1" />
1216 <PackageReference Include =" Microsoft.EntityFrameworkCore.Tools" Version =" 9.0.1" >
1317 <PrivateAssets >all</PrivateAssets >
1418 <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
1519 </PackageReference >
1620 </ItemGroup >
17-
18- <ItemGroup >
19- <ProjectReference Include =" ..\..\..\..\src\CommunityToolkit.Datasync.Server.Abstractions\CommunityToolkit.Datasync.Server.Abstractions.csproj" />
20- <ProjectReference Include =" ..\..\..\..\src\CommunityToolkit.Datasync.Server.EntityFrameworkCore\CommunityToolkit.Datasync.Server.EntityFrameworkCore.csproj" />
21- <ProjectReference Include =" ..\..\..\..\src\CommunityToolkit.Datasync.Server.NSwag\CommunityToolkit.Datasync.Server.NSwag.csproj" />
22- <ProjectReference Include =" ..\..\..\..\src\CommunityToolkit.Datasync.Server.Swashbuckle\CommunityToolkit.Datasync.Server.Swashbuckle.csproj" />
23- <ProjectReference Include =" ..\..\..\..\src\CommunityToolkit.Datasync.Server\CommunityToolkit.Datasync.Server.csproj" />
24- </ItemGroup >
25-
2621</Project >
You can’t perform that action at this time.
0 commit comments