连接数据库时有的会有
DbProviderFactory dbProviderFactory = DbProviderFactories.GetFactory("System.Data.SqlClient");
DbConnection dbConn = dbProviderFactory.CreateConnection();
DbCommand dbComm=dbProviderFactory.CreateCommand();
DbProviderFactory 到底是什么,有什么用处,什么时候用呢?