Skip to content

Commit 17b938a

Browse files
committed
fix oracle
1 parent 466e64a commit 17b938a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/Migrator.Tests/Migrator.Tests.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77

88
<ItemGroup>
99
<PackageReference Include="Microsoft.Data.SqlClient" Version="6.1.0" />
10+
<PackageReference Include="MySql.Data" Version="9.4.0" />
1011
<PackageReference Include="NSubstitute" Version="5.3.0" />
12+
<PackageReference Include="Oracle.ManagedDataAccess.Core" Version="23.9.1" />
1113
<PackageReference Include="System.Data.SqlClient" Version="4.9.0" />
1214
<PackageReference Include="System.Data.SQLite.Core" Version="1.0.119" />
1315
<PackageReference Include="Microsoft.Extensions.Configuration" Version="9.0.5" />

src/Migrator.Tests/Providers/Oracle/OracleTransformationProviderTest.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System.Data;
22
using Migrator.Framework;
3+
using Migrator.Providers;
34
using Migrator.Providers.Oracle;
45
using Migrator.Tests.Settings;
56
using Migrator.Tests.Settings.Config;
@@ -21,7 +22,9 @@ public void SetUp()
2122
if (string.IsNullOrEmpty(connectionString))
2223
{
2324
throw new IgnoreException("No Oracle ConnectionString is Set.");
24-
}
25+
}
26+
27+
DbProviderFactories.RegisterFactory("Oracle.DataAccess.Client", () => Oracle.ManagedDataAccess.Client.OracleClientFactory.Instance);
2528

2629
Provider = new OracleTransformationProvider(new OracleDialect(), connectionString, null, "default", null);
2730
Provider.BeginTransaction();

0 commit comments

Comments
 (0)