private static IDataObjectStore GetDataObjectStore(string storeName) { var context = new EmbeddedDataObjectContext(new ConnectionString("type=embedded;storesDirectory=" + Configuration.StoreLocation + "\\")); if (!context.DoesStoreExist(storeName)) { return context.CreateStore(storeName); } return context.OpenStore(storeName); }