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