DataContext Constructor

 

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.

Namespace:   System.Data.Linq
Assembly:  System.Data.Linq (in System.Data.Linq.dll)

NameDescription
System_CAPS_pubmethodDataContext(IDbConnection)

Initializes a new instance of the DataContext class by referencing the connection used by the .NET Framework.

System_CAPS_pubmethodDataContext(IDbConnection, MappingSource)

Initializes a new instance of the DataContext class by referencing a connection and a mapping source.

System_CAPS_pubmethodDataContext(String)

Initializes a new instance of the DataContext class by referencing a file source.

System_CAPS_pubmethodDataContext(String, MappingSource)

Initializes a new instance of the DataContext class by referencing a file source and a mapping source.

Return to top
Show: