This short example demonstrates how to use the storage in your code.
| C# VB.NET |
// Create the instance of the Advantage Database Server storage. AdsStorage storage = new AdsStorage("foo.db", ServerTypes.Local, "user", "password"); // Set it as storage of the ObjectContext. ObjectContext context = new ObjectContext(storage); ' Create the instance of the Advantage Database Server storage. Dim storage As New AdsStorage("foo.db", ServerTypes.Local, "user", "password") ' Set it as storage of the ObjectContext. Dim context As New ObjectContext(storage) |