DataContext Constructor

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

Initializes a new instance of the DataContext class. The connection string you use specifies the location and configuration parameters of the local database file in isolated storage.

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
Public methodSupported by Silverlight for Windows Phone DataContext(String) Initializes a new instance of the DataContext class by referencing a file source.
Public methodSupported by Silverlight for Windows Phone DataContext(String, MappingSource) Initializes a new instance of the DataContext class by referencing a file source and a mapping source.

Top

Remarks

For information about using a local database in your Windows Phone application, see Local Database Overview for Windows Phone.