efcore icon indicating copy to clipboard operation
efcore copied to clipboard

SqlDataAdapter is missing from NetStandard System.Data.SqlClient

Open EdLichtman opened this issue 8 years ago • 6 comments

I'm attempting to build an utility library using NetStandard and I have installed System.Data.Common and System.Data.SqlClient. When I attempt to use a SqlDataAdapter I get the error "The type or namespace name "SqlDataAdapter" could not be found.

What am I supposed to do to resolve?

EdLichtman avatar Nov 09 '18 15:11 EdLichtman

Add https://www.nuget.org/packages/Microsoft.Windows.Compatibility/2.0.0

dcarr42 avatar Nov 09 '18 17:11 dcarr42

@EdLichtman can you please report this issue at https://github.com/dotnet/corefx/issues/new. That is were issues for the System.Data.SqlClient packages are tracked.

Also, I haven't tried that @dallancarr suggest but it seems worth trying. Even if it turns out the Microsoft.Windows.Compatibility pack helps, I am not sure that should be necessary, so it seems to be this is a valid issue.

divega avatar Nov 09 '18 19:11 divega

Should not be strictly required as @divega mentioned.

dcarr42 avatar Nov 09 '18 21:11 dcarr42

Example here using netcoreapp.2.0 using preview version of the SqlClient library.

https://github.com/jhealy/aspdotnetcore/blob/master/SqlClientPlay20/SqlClientPlay20/SqlClientPlay20.csproj

dcarr42 avatar Nov 09 '18 22:11 dcarr42

Keeping the issue open until next triage to make sure someone reports it to corefx.

divega avatar Nov 09 '18 22:11 divega

This issue was moved to dotnet/corefx#33375

divega avatar Nov 09 '18 22:11 divega