File tree Expand file tree Collapse file tree 10 files changed +32
-33
lines changed
DataSetGenericDataAdapter
SqliteDemo.CommandBuilder
SqliteDemo.MVCApplication Expand file tree Collapse file tree 10 files changed +32
-33
lines changed Original file line number Diff line number Diff line change 22
33 <PropertyGroup >
44 <OutputType >Exe</OutputType >
5- <TargetFramework >netcoreapp3.1 </TargetFramework >
5+ <TargetFramework >net8.0 </TargetFramework >
66 </PropertyGroup >
77
88 <ItemGroup >
9- <PackageReference Include =" Microsoft.Data.Sqlite" Version =" 3.1.4 " />
10- <PackageReference Include =" NReco.Data" Version =" 1.1.1 " />
11- <PackageReference Include =" MySqlConnector" Version =" 0.66 .0" />
9+ <PackageReference Include =" Microsoft.Data.Sqlite" Version =" 8.0.* " />
10+ <PackageReference Include =" NReco.Data" Version =" 1.2.* " />
11+ <PackageReference Include =" MySqlConnector" Version =" 2.4 .0" />
1212 </ItemGroup >
1313
1414
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ static void GenericDataAdapterForSqlite() {
6565 static void GenericDataAdapterForMySql ( ) {
6666 Console . WriteLine ( "Mysql database (sample server, may respond slowly)" ) ;
6767
68- var dbFactory = new DbFactory ( MySql . Data . MySqlClient . MySqlClientFactory . Instance ) {
68+ var dbFactory = new DbFactory ( MySqlConnector . MySqlConnectorFactory . Instance ) {
6969 LastInsertIdSelectText = "SELECT LAST_INSERT_ID()" ,
7070 IdentifierFormat = "`{0}`"
7171 } ;
Original file line number Diff line number Diff line change 77 </PropertyGroup >
88
99 <ItemGroup >
10- <PackageReference Include =" MySqlConnector" Version =" 0.66 .0" />
11- <PackageReference Include =" NReco.Data" Version =" 1.1.1 " />
10+ <PackageReference Include =" MySqlConnector" Version =" 2.4 .0" />
11+ <PackageReference Include =" NReco.Data" Version =" 1.2.* " />
1212 <PackageReference Include =" System.Data.SqlClient" Version =" 4.8.6" />
1313 </ItemGroup >
1414
Original file line number Diff line number Diff line change 55using System . Linq ;
66using System . Threading . Tasks ;
77
8- using MySql . Data . MySqlClient ;
8+ using MySqlConnector ;
99
1010using NReco . Data ;
1111
@@ -28,7 +28,7 @@ protected static DbDataAdapter dbAdapter {
2828 if ( _dbAdapter == null ) {
2929 var sqlDbPath = "Server=db4free.net;Database=nreco_sampledb;Uid=nreco_sampledb;Pwd=HRt5UbVD;" ;
3030
31- var dbFactory = new DbFactory ( MySqlClientFactory . Instance ) {
31+ var dbFactory = new DbFactory ( MySqlConnector . MySqlConnectorFactory . Instance ) {
3232 LastInsertIdSelectText = "SELECT LAST_INSERT_ID()"
3333 } ;
3434 var dbConnection = dbFactory . CreateConnection ( ) ;
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk" >
22
33 <PropertyGroup >
4- <TargetFramework >netcoreapp3.1 </TargetFramework >
4+ <TargetFramework >net8.0 </TargetFramework >
55 <AssemblyName >SqliteDemo.CommandBuilder</AssemblyName >
66 <OutputType >Exe</OutputType >
77 </PropertyGroup >
88
99 <ItemGroup >
10- <PackageReference Include =" NReco.Data" Version =" 1.1.1 " />
11- <PackageReference Include =" Microsoft.Data.Sqlite" Version =" 3.1.4 " />
10+ <PackageReference Include =" NReco.Data" Version =" 1.2.* " />
11+ <PackageReference Include =" Microsoft.Data.Sqlite" Version =" 8.0.* " />
1212 </ItemGroup >
1313
1414 <ItemGroup >
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk" >
22
33 <PropertyGroup >
4- <TargetFramework >netcoreapp3.1 </TargetFramework >
4+ <TargetFramework >net8.0 </TargetFramework >
55 <AssemblyName >SqliteDemo.DataAdapter</AssemblyName >
66 <OutputType >Exe</OutputType >
77 </PropertyGroup >
88
99 <ItemGroup >
10- <PackageReference Include =" Microsoft.Data.Sqlite" Version =" 3.1.4" />
11- <PackageReference Include =" System.ComponentModel.Annotations" Version =" 4.5.0" />
12- <PackageReference Include =" NReco.Data" Version =" 1.1.1" />
10+ <PackageReference Include =" Microsoft.Data.Sqlite" Version =" 8.0.*" />
11+ <PackageReference Include =" NReco.Data" Version =" 1.2.*" />
1312 </ItemGroup >
1413
1514 <ItemGroup >
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk.Web" >
22
33 <PropertyGroup >
4- <TargetFramework >netcoreapp3.1 </TargetFramework >
4+ <TargetFramework >net8.0 </TargetFramework >
55 </PropertyGroup >
66
77 <ItemGroup >
8- <PackageReference Include =" Microsoft.Data.Sqlite" Version =" 3.1.4 " />
9- <PackageReference Include =" NReco.Data" Version =" 1.1.1 " />
8+ <PackageReference Include =" Microsoft.Data.Sqlite" Version =" 8.0.* " />
9+ <PackageReference Include =" NReco.Data" Version =" 1.2.* " />
1010 <PackageReference Include =" GraphQL" Version =" 2.4.0" />
1111 </ItemGroup >
1212
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk.Web" >
22
33 <PropertyGroup >
4- <TargetFramework >netcoreapp3.1 </TargetFramework >
4+ <TargetFramework >net8.0 </TargetFramework >
55 </PropertyGroup >
66
77 <ItemGroup >
1111 </ItemGroup >
1212
1313 <ItemGroup >
14- <PackageReference Include =" Microsoft.EntityFrameworkCore.Sqlite" Version =" 3.1.4 " />
15- <PackageReference Include =" Microsoft.EntityFrameworkCore.Design" Version =" 3.1.4 " >
14+ <PackageReference Include =" Microsoft.EntityFrameworkCore.Sqlite" Version =" 8.0.* " />
15+ <PackageReference Include =" Microsoft.EntityFrameworkCore.Design" Version =" 8.0.* " >
1616 <PrivateAssets >All</PrivateAssets >
1717 </PackageReference >
1818
19- <PackageReference Include =" Microsoft.EntityFrameworkCore.Relational" Version =" 3.1.4 " />
19+ <PackageReference Include =" Microsoft.EntityFrameworkCore.Relational" Version =" 8.0.* " />
2020
21- <PackageReference Include =" NReco.Data" Version =" 1.1.1 " />
22- <PackageReference Include =" Microsoft.Data.Sqlite" Version =" 3.1.4 " />
21+ <PackageReference Include =" NReco.Data" Version =" 1.2.* " />
22+ <PackageReference Include =" Microsoft.Data.Sqlite" Version =" 8.0.* " />
2323 </ItemGroup >
2424
2525 <Target Name =" PrepublishScript" BeforeTargets =" PrepareForPublish" >
2828 </Target >
2929
3030 <ItemGroup >
31- <DotNetCliToolReference Include =" BundlerMinifier.Core" Version =" 2 .2.301 " />
31+ <DotNetCliToolReference Include =" BundlerMinifier.Core" Version =" 3 .2.* " />
3232 <DotNetCliToolReference Include =" Microsoft.EntityFrameworkCore.Tools.DotNet" Version =" 2.0.3" />
3333 </ItemGroup >
3434
Original file line number Diff line number Diff line change 22
33 <PropertyGroup >
44 <OutputType >Exe</OutputType >
5- <TargetFramework >netcoreapp3.1 </TargetFramework >
5+ <TargetFramework >net8.0 </TargetFramework >
66 </PropertyGroup >
77
88 <ItemGroup >
9- <PackageReference Include =" NReco.Data" Version =" 1.1.1 " />
10- <PackageReference Include =" Microsoft.Data.Sqlite" Version =" 3.1.4 " />
9+ <PackageReference Include =" NReco.Data" Version =" 1.2.* " />
10+ <PackageReference Include =" Microsoft.Data.Sqlite" Version =" 8.0.* " />
1111 </ItemGroup >
1212
1313 <ItemGroup >
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk.Web" >
22
33 <PropertyGroup >
4- <TargetFramework >netcoreapp3.1 </TargetFramework >
4+ <TargetFramework >net8.0 </TargetFramework >
55 </PropertyGroup >
66
77 <ItemGroup >
8- <PackageReference Include =" Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version =" 3.1.2 " />
9- <PackageReference Include =" Microsoft.Data.Sqlite" Version =" 3.1.4 " />
10- <PackageReference Include =" NReco.Data" Version =" 1.1.1 " />
8+ <PackageReference Include =" Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version =" 8.0.* " />
9+ <PackageReference Include =" Microsoft.Data.Sqlite" Version =" 8.0.* " />
10+ <PackageReference Include =" NReco.Data" Version =" 1.2.* " />
1111 </ItemGroup >
1212
1313 <ItemGroup >
You can’t perform that action at this time.
0 commit comments