DatabaseSource Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
DatabaseSource(DbProviderFactory, String, String) |
Creates a new instance of the DatabaseSource class. |
DatabaseSource(DbProviderFactory, String, String, Int32) |
Creates a new instance of the DatabaseSource class. |
DatabaseSource(DbProviderFactory, String, String)
Creates a new instance of the DatabaseSource class.
public DatabaseSource (System.Data.Common.DbProviderFactory providerFactory, string connectionString, string commandText);
new Microsoft.ML.Data.DatabaseSource : System.Data.Common.DbProviderFactory * string * string -> Microsoft.ML.Data.DatabaseSource
Public Sub New (providerFactory As DbProviderFactory, connectionString As String, commandText As String)
Parameters
- providerFactory
- DbProviderFactory
The factory used to create the DbConnection..
- connectionString
- String
The string used to open the connection.
- commandText
- String
The text command to run against the data source.
Applies to
DatabaseSource(DbProviderFactory, String, String, Int32)
Creates a new instance of the DatabaseSource class.
public DatabaseSource (System.Data.Common.DbProviderFactory providerFactory, string connectionString, string commandText, int commandTimeoutInSeconds);
new Microsoft.ML.Data.DatabaseSource : System.Data.Common.DbProviderFactory * string * string * int -> Microsoft.ML.Data.DatabaseSource
Public Sub New (providerFactory As DbProviderFactory, connectionString As String, commandText As String, commandTimeoutInSeconds As Integer)
Parameters
- providerFactory
- DbProviderFactory
The factory used to create the DbConnection..
- connectionString
- String
The string used to open the connection.
- commandText
- String
The text command to run against the data source.
- commandTimeoutInSeconds
- Int32
The timeout(in seconds) for database command.