5
Secondo MSDN c'è un sovraccarico di GetFactory (DbConnection) in .NET 4. Tuttavia, non posso invocarlo - non riesce al momento della compilazione dicendo:DbProviderFactories.GetFactory Method (DbConnection) Manca
error BC30518: Overload resolution failed because no accessible 'GetFactory' can be called with these arguments:
'Public Shared Function GetFactory(providerRow As System.Data.DataRow) As System.Data.Common.DbProviderFactory': Value of type 'System.Data.Common.DbConnection' cannot be converted to 'System.Data.DataRow'.
'Public Shared Function GetFactory(providerInvariantName As String) As System.Data.Common.DbProviderFactory': Value of type 'System.Data.Common.DbConnection' cannot be converted to 'String'.
C'è qualcosa di sbagliato nel mio .NET FW o è un refuso nella documentazione?
+1 confermato, lo stesso per me con .NET 4. –