DBContext Constructor
Creates an instance of this ADO.NET database context and attempts to access the database via connection string.
Syntax
'Declaration Public Function New( _ Optional ByVal applicationName As String, _ Optional ByVal connectionTimeout As Nullable(Of Integer) _ )
'Usage Dim applicationName As String Dim connectionTimeout As Nullable(Of Integer) Dim instance As New DBContext(applicationName, connectionTimeout)
public DBContext( string applicationName, Nullable<int> connectionTimeout )
public: DBContext( String^ applicationName, Nullable<int> connectionTimeout )
Parameters
- applicationName
- The name of the application or assembly accessing the database.
- connectionTimeout
- The amount of time that can be specified to wait before timing out a connection.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also