Skip to content

Commit 7c28564

Browse files
committed
Remove System.Data.OleDb package reference
1 parent a2eb40b commit 7c28564

5 files changed

+6
-24
lines changed

src/Dax.Model.Extractor/Data/IDbConnectionExtensions.cs

-20
This file was deleted.

src/Dax.Model.Extractor/Dax.Model.Extractor.csproj

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222

2323
<ItemGroup>
2424
<PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All" />
25-
<PackageReference Include="System.Data.OleDb" />
2625
</ItemGroup>
2726
<ItemGroup Condition="'$(TargetFramework)' == 'net462'">
2827
<PackageReference Include="Microsoft.AnalysisServices.retail.amd64" />

src/Dax.Model.Extractor/DmvExtractor.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ public class DmvExtractor
3434

3535
protected IDbCommand CreateCommand(string commandText)
3636
{
37-
return Connection.CreateCommand(commandText);
37+
var command = Connection.CreateCommand();
38+
command.CommandText = commandText;
39+
return command;
3840
}
3941

4042
public DmvExtractor(Dax.Metadata.Model daxModel, IDbConnection connection, string serverName, string databaseName, string extractorApp, string extractorVersion)

src/Dax.Model.Extractor/StatExtractor.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ private StatExtractor(Dax.Metadata.Model daxModel, IDbConnection connection)
1919

2020
protected IDbCommand CreateCommand(string commandText)
2121
{
22-
return Connection.CreateCommand(commandText);
22+
var command = Connection.CreateCommand();
23+
command.CommandText = commandText;
24+
return command;
2325
}
2426

2527
// UpdateStatisticsModel has been marked as obsolete because its usage may require rerunning the DMVs for models with DirectLake partitions. Since this logic should be handled by the library, we may consider removing it from the public APIs in a future release.

src/Directory.Packages.props

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
<PackageVersion Include="Microsoft.AnalysisServices.AdomdClient.NetCore.retail.amd64" Version="$(MicrosoftAnalysisServicesVersion)" />
1313
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="1.1.1" />
1414
<PackageVersion Include="Newtonsoft.Json" Version="13.0.3" />
15-
<PackageVersion Include="System.Data.OleDb" Version="6.0.0" />
1615
<PackageVersion Include="System.IO.Packaging" Version="6.0.0" />
1716
<PackageVersion Include="coverlet.collector" Version="6.0.0" />
1817
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />

0 commit comments

Comments
 (0)