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 33
33
_ = builder . Services . AddSwaggerGen ( options => options . AddDatasyncControllers ( ) ) ;
34
34
}
35
35
36
- if ( openApiEnabled )
37
- {
38
- _ = builder . Services . AddOpenApi ( ) ;
39
- }
36
+ // if (openApiEnabled)
37
+ // {
38
+ // _ = builder.Services.AddOpenApi(options => options.AddDatasyncTransformers() );
39
+ // }
40
40
41
41
WebApplication app = builder . Build ( ) ;
42
42
62
62
app . UseAuthorization ( ) ;
63
63
app . MapControllers ( ) ;
64
64
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
+ // }
69
69
70
70
app . Run ( ) ;
Original file line number Diff line number Diff line change 7
7
</PropertyGroup >
8
8
9
9
<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" />
10
14
<PackageReference Include =" Microsoft.AspNetCore.OpenApi" Version =" 9.0.1" />
11
15
<PackageReference Include =" Microsoft.EntityFrameworkCore.SqlServer" Version =" 9.0.1" />
12
16
<PackageReference Include =" Microsoft.EntityFrameworkCore.Tools" Version =" 9.0.1" >
13
17
<PrivateAssets >all</PrivateAssets >
14
18
<IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
15
19
</PackageReference >
16
20
</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
-
26
21
</Project >
You can’t perform that action at this time.
0 commit comments