This short example demonstrates how to use the storage in your code.
| C# VB.NET |
// Create the instance of the MS SQL compact storage. MsSqlCompactStorage storage = new MsSqlCompactStorage( "C:\\", "database.mdf"); // Set it as storage of the ObjectContext. ObjectContext context = new ObjectContext(storage); ' Create the instance of the MS SQL compact storage. Dim storage As New FirebirdStorage( _ "C:\", "database.mdf") ' Set it as storage of the ObjectContext. Dim context As New ObjectContext(storage) |