System.Data.SqlClient removed as a default namespace in LINQPad 6?
Options
Joe, in the UserVoice suggestion “Show the default namespaces and assembly references in the query properties”, you said:
I notice that the
In LINQPad 6, you can now see all namespace imports in Query Properties, and remove default namespaces as required.
System.Data.SqlClient
namespace no longer appears as a default, when it's been there in previous versions. Wouldn't this break older scripts using types from that namespace? Comments
-
I think this is reasonable since .NET Core 3.0 removed SqlClient by default and introduced Microsoft.Data.SqlClient, which is also a breaking change.
-
That's right. The LINQ-to-SQL namespace has also been removed by default for the same reason.
-
Thanks for confirming. I just wanted to make sure this is intentional and not a glitch in a preview release.
However, System.Data.SqlClient isn't dead. It's not a breaking change, per se, unless I missed some news. It's just that Microsoft.Data.SqlClient is being promoted as the “flagship data access driver for SQL Server going forward.”