DataContext Constructor
Collapse the table of content
Expand the table of content

DataContext Constructor

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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.

  NameDescription
Public method DataContext(String) Initializes a new instance of the DataContext class by referencing a file source.
Public method DataContext(String, MappingSource) Initializes a new instance of the DataContext class by referencing a file source and a mapping source.
Top

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

Show:
© 2017 Microsoft