DataContext Constructor

Include Protected Members
Include Inherited Members

Include .NET Framework Members
Include .NET Compact Framework Members
Include XNA Framework Members

Initializes a new instance of the DataContext class.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
DataContext(IDbConnection) Initializes a new instance of the DataContext class by referencing the connection used by the .NET Framework.
DataContext(String) Initializes a new instance of the DataContext class by referencing a file source.
DataContext(IDbConnection, MappingSource) Initializes a new instance of the DataContext class by referencing a connection and a mapping source.
DataContext(String, MappingSource) Initializes a new instance of the DataContext class by referencing a file source and a mapping source.

Top

See Also

Reference

DataContext Class

DataContext Members

System.Data.Linq Namespace