In Microsoft.Data.SqlClient
which is the equivalent of System.Data.SqlClient
data layer?
I’m rewriting an old procedure from a fired collaborator and now I have that problem…
It’s a simple question I know… but I found nothing on the web…
Thanks…
1
If you are asking about Microsoft.Data.SqlClient
vs System.Data.SqlClient
, then yes: Microsoft.Data.SqlClient
should be preferred and is where the ongoing development is more focused; however, System.Data.SqlClient
remains available and usable even on current .NET via this NuGet package. In reality: please use Microsoft.Data.SqlClient
unless you have a very good reason.
If you’re specifically asking about a technology / API called “DataLayer” (rather than the vague data layer concept): you’re going to have to be more specific. AFAIK, that’s not a thing.