DataContext Constructor
.NET Framework (current version)
Initializes a new instance of the DataContext class. The connection string you use can be an ADO.NET connection string. You can also specify a filename to a SQL Server Express or SQL Server Compact file.
Assembly: System.Data.Linq (in System.Data.Linq.dll)
| Name | Description | |
|---|---|---|
![]() | DataContext(IDbConnection^) | Initializes a new instance of the DataContext class by referencing the connection used by the .NET Framework. |
![]() | DataContext(IDbConnection^, MappingSource^) | Initializes a new instance of the DataContext class by referencing a connection and a mapping source. |
![]() | DataContext(String^) | Initializes a new instance of the DataContext class by referencing a file source. |
![]() | DataContext(String^, MappingSource^) | Initializes a new instance of the DataContext class by referencing a file source and a mapping source. |
Show:
