Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 1.43 KB

dbproviderfactories.md

File metadata and controls

30 lines (22 loc) · 1.43 KB
title description author ms.author ms.reviewer ms.date ms.service ms.subservice ms.topic
DbProviderFactories
Describes the provider factory model and demonstrates how to use the base classes in the `System.Data.Common` namespace.
David-Engel
davidengel
v-chmalh
12/22/2020
sql
connectivity
conceptual

DbProviderFactories

[!INCLUDEappliesto-netfx-netcore-netst-md]

[!INCLUDEDriver_ADONET_Download]

The xref:System.Data.Common namespace provides classes for creating xref:System.Data.Common.DbProviderFactory instances to work with specific data sources. When you create a xref:System.Data.Common.DbProviderFactory instance and pass it information about the data provider, the DbProviderFactory can determine the correct, strongly typed connection object to return based on the information it has been provided.

The data provider xref:Microsoft.Data.SqlClient is no longer listed in machine.config file, but custom providers will continue to be listed there.

In this section

Obtain a SqlClientFactory
Demonstrates how to obtain a SqlClientFactory from the DbProviderFactories class to work with specific data sources in .NET.

See also