Sì.
ho RavenDB in esecuzione in un ambiente di hosting condiviso, http://www.winhost.com/, utilizzando ASP.NET MVC 3 e RavenDB 1.0.0.371 che è stato rilasciato da qualche parte intorno a luglio 2011.
Il mio codice:
public static class Store
{
private static IDocumentStore store = createStore();
private static EmbeddableDocumentStore createStore()
{
var returnStore = new EmbeddableDocumentStore();
returnStore.DataDirectory = @"./PersistedData";
returnStore.Initialize();
return returnStore;
}
public static xxx Read(string key)
{
using (var session = store.OpenSession())
{
var anEntity = session.Query<xxx>().
Where(item => item.key == key).Single();
return anEntity;
}
}
public static void Write(xxx)
{
using (var session = store.OpenSession())
{
session.Store(xxx);
session.SaveChanges();
}
}
}
Il L'unico inconveniente finora è che non ottengo lo studio di gestione RavenDB.
fonte
2011-12-04 16:45:42
Dipende dalle autorizzazioni che l'ambiente di hosting consente ... [Versione integrata in un ambiente ospitato ASP.Net] (http://groups.google.com/group/ravendb/browse_thread/thread/8f508f0d2603a8d6/cba4f0ccbe5f8d73?lnk = gst & q = embedded # cba4f0ccbe5f8d73) – sqlray
Grazie - copre la seconda parte della mia domanda (es. dipendenze), ma che dire delle migliori pratiche per implementarla effettivamente? –
Il download http://ravendb.net/tutorials contiene un campione MVC e il gruppo google è una community attiva in cui sono sicuro che è possibile trovare le risposte alle specifiche. – sqlray