You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 10, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: docs/1. Create BackEnd API project.md
+11-9Lines changed: 11 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,10 +40,10 @@
40
40
}
41
41
}
42
42
```
43
-
1. AddareferencetotheNuGetpackage `Microsoft.EntityFrameworkCore.SqlServer` version `3.0.0-preview6.19304.10`.Notethatyou'll need to resolve several references by adding missing `using` statements (`Ctrl + .` is your friend).
44
-
>**Ifyou're not using Visual Studio** install the package from the command line with `dotnet add package Microsoft.EntityFrameworkCore.SqlServer --version 3.0.0-preview6.19304.10`
45
-
1. AddareferencetotheNuGetpackage `Microsoft.EntityFrameworkCore.Sqlite` version `3.0.0-preview6.19304.10`.Notethatyou'll need to resolve several references by adding missing `using` statements (`Ctrl + .` is your friend).
46
-
>**Ifyou're not using Visual Studio** install the package from the command line with `dotnet add package Microsoft.EntityFrameworkCore.Sqlite --version 3.0.0-preview6.19304.10`
43
+
1. AddareferencetotheNuGetpackage `Microsoft.EntityFrameworkCore.SqlServer` version `3.0.0-preview6.19304.10`.
1. AddareferencetotheNuGetpackage `Microsoft.EntityFrameworkCore.Tools` version `3.0.0-preview6.19304.10`.
104
+
>**Ifyou're not using Visual Studio** install the package from the command line with `dotnet add package Microsoft.EntityFrameworkCore.Tools --version 3.0.0-preview6.19304.10`
@@ -174,8 +175,9 @@ In this section, we'll be adding documentation to our API using the Swashbuckle
174
175
175
176
Additional information on using Swashbuckle in ASP.NET Core is available in this tutorial: [ASP.NET Web API Help Pages using Swagger](https://docs.microsoft.com/en-us/aspnet/core/tutorials/web-api-help-pages-using-swagger)
176
177
177
-
1. Add a reference to `Swashbuckle.AspNetCore` version `5.0.0-rc2`.
178
-
> This can be done from the command line using `dotnet add package Swashbuckle.AspNetCore --version 5.0.0-rc2`
178
+
1. Add a reference to the NuGet package `Swashbuckle.AspNetCore` version `5.0.0-rc2`.
179
+
> This can be done from the command line using `dotnet add package Swashbuckle.AspNetCore --version 5.0.0-rc2`
180
+
179
181
1. Add the Swashbuckle services in your `ConfigureServices` method:
180
182
```csharp
181
183
services.AddControllers();
@@ -184,7 +186,7 @@ Additional information on using Swashbuckle in ASP.NET Core is available in this
184
186
options.SwaggerDoc("v1", new OpenApiInfo { Title = "Conference Planner API", Version = "v1" })
185
187
);
186
188
```
187
-
1. Configure Swashbuckle by adding the following lines to top of the `Configure` method in `Startup.cs`:
189
+
1. Configure Swashbuckle by adding the following lines just before `UseEndpoints` in the `Configure` method in `Startup.cs`:
0 commit comments