DataContext Constructor (String, MappingSource)
[ 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 and a mapping source.
Assembly: System.Data.Linq (in System.Data.Linq.dll)
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.
- mapping
- Type: System.Data.Linq.Mapping.MappingSource
The MappingSource.
For information about supported connection strings and using a local database in your Windows Phone application, see Local database for Windows Phone 8.
Show: