DataContext Constructor (String)
Collapse the table of content
Expand the table of content

DataContext Constructor (String)

[ 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 by referencing a file source.

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

public DataContext(
	string fileOrConnection
)

Parameters

fileOrConnection
Type: System.String
This argument can be any one of the following:
Using the isostore:/ prefix, the name of the file where a local database resides in isolated storage.
A complete connection string.

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

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft