Skip to content

Commit b4ace1d

Browse files
committed
Update Nuget version to 4.0.0
1 parent 0d9d3be commit b4ace1d

6 files changed

Lines changed: 9 additions & 17 deletions

File tree

-14 Bytes
Binary file not shown.

Appeon.DataStoreDemo.API/Appeon.DataStoreDemo.API.csproj.user

Lines changed: 0 additions & 9 deletions
This file was deleted.
-6 Bytes
Binary file not shown.

Appeon.DataStoreDemo.API/appsettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
},
77
"AllowedHosts": "*",
88
"ConnectionStrings": {
9-
"AdventureWorks2012": "Data Source=127.0.0.1; Initial Catalog=AdventureWorks2012; Integrated Security=False; User ID=sa; Password=123456; Pooling=True;Min Pool Size=0;Max Pool Size=100;MultipleActiveResultSets=False;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite"
9+
"AdventureWorks2012": "Data Source=127.0.0.1; Initial Catalog=AdventureWorks2012; Integrated Security=False; User ID=sa; Password=12345; Pooling=True;Min Pool Size=0;Max Pool Size=100;MultipleActiveResultSets=False;Encrypt=False;ApplicationIntent=ReadWrite;TrustServerCertificate=True"
1010
}
1111
}
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>netstandard2.1</TargetFramework>
3+
<TargetFramework>net6.0</TargetFramework>
4+
<StartupObject />
45
</PropertyGroup>
56
<ItemGroup>
6-
<PackageReference Include="DWNet.Data" Version="3.1.0-beta2" />
7-
<PackageReference Include="SnapObjects.Data.AspNetCore" Version="3.1.0-beta2" />
8-
<PackageReference Include="SnapObjects.Data.SqlServer" Version="3.1.0-beta2" />
7+
<PackageReference Include="DWNet.Data" Version="4.0.0" />
8+
<PackageReference Include="SnapObjects.Data.AspNetCore" Version="4.0.0" />
9+
<PackageReference Include="SnapObjects.Data.SqlServer" Version="4.0.0" />
910
</ItemGroup>
1011
</Project>

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This ASP.NET Core project makes use of the web API, and reference to a Class Lib
44

55
##### Sample Project Structure
66

7-
The project contains an ASP.Net Core Web Application project. it is implemented using [Web API](https://docs.microsoft.com/aspnet/core/web-api/?view=aspnetcore-3.1).
7+
The project contains an ASP.Net Core Web Application project. it is implemented using [Web API](https://docs.microsoft.com/aspnet/core/web-api/?view=aspnetcore-6.0).
88

99
The project is structured as follows.
1010

@@ -20,15 +20,15 @@ The project is structured as follows.
2020

2121
1. Download the project and save it to your local directory.
2222

23-
2. Open the *DataStore-Example.sln* solution in Visual Studio 2019 or another C# development IDE.
23+
2. Open the *DataStore-Example.sln* solution in Visual Studio 2022 or another C# development IDE.
2424

2525
3. Download the SQL Server database backup file from [.NET-Project-Example-Database](https://github.com/Appeon/.NET-Project-Example-Database), and restore the database using the downloaded database backup file.
2626

2727
4. Open the configuration file *appsettings.json* in the *Appeon.DataStoreDemo.API* project, modify the ConnectionStrings with the SQL Server database connection information.
2828

2929
```json
3030
//Keep the database connection name as the default “AdventureWorks2012” or change it to a name you prefer to use, and change the Data Source, User ID, Password and Initial Catalog according to the actual settings
31-
"ConnectionStrings": { "AdventureWorks2012": "Data Source=127.0.0.1; Initial Catalog=AdventureWorks2012; Integrated Security=False; User ID=sa; Password=123456; Pooling=True; Min Pool Size=0; Max Pool Size=100; ApplicationIntent=ReadWrite" }
31+
"ConnectionStrings": { "AdventureWorks2012": "Data Source=127.0.0.1; Initial Catalog=AdventureWorks2012; Integrated Security=False; User ID=sa; Password=123456; Pooling=True; Min Pool Size=0; Max Pool Size=100; ApplicationIntent=ReadWrite;Trust Server Certificate=True" }
3232
```
3333

3434
5. In the ConfigureServices method of *Startup.cs*, go to the following line, and make sure the ConnectionString name is the same as the database connection name specified in step #4.

0 commit comments

Comments
 (0)