public EmbeddedDocumentStore(string name) { try { Conventions = new DocumentConvention { DocumentKeyGenerator = entity => { var typeTagName = Conventions.GetTypeTagName(entity.GetType()); if (typeTagName == null) return Guid.NewGuid().ToString(); return typeTagName + "/" + Guid.NewGuid(); } }; persistentSource = new IsolatedStoragePersistentSource(name, "ravenlight"); storage = new TableStorage(persistentSource); } catch { Dispose(); throw; } }
public StorageActions(TableStorage storage) { Storage = storage; }