This short example demonstrates how to use the storage in your code.
| C# VB.NET |
// Create the instance of the MS SQL Server storage. MsSqlStorage storage = new MsSqlStorage("user", "password", "host", "database"); // Set it as storage of the ObjectContext. ObjectContext context = new ObjectContext(storage); ' Create the instance of the MS SQL Server storage. Dim storage As New MsSqlStorage("user", "password", "host", "database") ' Set it as storage of the ObjectContext. Dim context As New ObjectContext(storage) |