Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Microsoft.Data packages instead of System.Data #291

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Evolve.Cli/Evolve.Cli.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
<PackageReference Include="McMaster.Extensions.CommandLineUtils" Version="3.1.0" />
<PackageReference Include="MySqlConnector" Version="2.1.13" />
<PackageReference Include="Npgsql" Version="6.0.7" />
<PackageReference Include="System.Data.SqlClient" Version="4.8.3" />
<PackageReference Include="System.Data.SQLite.Core" Version="1.0.116" />
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.0.1" />
<PackageReference Include="Microsoft.Data.Sqlite" Version="6.0.12" />
</ItemGroup>

<ItemGroup>
Expand Down
6 changes: 3 additions & 3 deletions src/Evolve.Cli/EvolveFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using System.Data.SqlClient;
using System.Data.SQLite;
using Microsoft.Data.SqlClient;
using Microsoft.Data.Sqlite;
using System.Linq;
using System.Reflection;
using System.Text;
Expand Down Expand Up @@ -91,7 +91,7 @@ private static DbConnection CreateConnection(Program options)
cnn = new NpgsqlConnection(cnnStr);
break;
case DBMS.SQLite:
cnn = new SQLiteConnection(cnnStr);
cnn = new SqliteConnection(cnnStr);
break;
case DBMS.SQLServer:
cnn = new SqlConnection(cnnStr) { AccessToken = options.SqlServerAccessToken };
Expand Down
3 changes: 2 additions & 1 deletion src/Evolve.Cli/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
using Configuration;
using Dialect;
using McMaster.Extensions.CommandLineUtils;
using Microsoft.Data.Sqlite;

[Command(ResponseFileHandling = ResponseFileHandling.ParseArgsAsSpaceSeparated)]
class Program
{
private static readonly Evolve Default = new Evolve(new System.Data.SQLite.SQLiteConnection("Data Source=:memory:"));
private static readonly Evolve Default = new Evolve(new SqliteConnection("Data Source=:memory:"));

static int Main(string[] args) => CommandLineApplication.Execute<Program>(args);

Expand Down
4 changes: 2 additions & 2 deletions src/Evolve.Tool/Evolve.Tool.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ Every time you build your project, it will automatically ensure that your databa
<ItemGroup>
<PackageReference Include="CassandraCSharpDriver" Version="3.18.0" />
<PackageReference Include="McMaster.Extensions.CommandLineUtils" Version="3.1.0" />
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.0.1" />
<PackageReference Include="Microsoft.Data.Sqlite" Version="6.0.12" />
<PackageReference Include="MySqlConnector" Version="2.1.13" />
<PackageReference Include="Npgsql" Version="6.0.7" />
<PackageReference Include="System.Data.SqlClient" Version="4.8.3" />
<PackageReference Include="System.Data.SQLite.Core" Version="1.0.116" />
</ItemGroup>

<ItemGroup>
Expand Down