Beispiel #1
0
        public static RavenDbSession OpenStorageSession()
        {
            var storageSession = new RavenDbSession(CurrentSession);

            if (!storageSession.IsInitialized)
            {
                storageSession.ForcedInitialize();
            }
            return(storageSession);
        }
Beispiel #2
0
 public static RavenDbSession OpenStorageSession()
 {
     var storageSession = new RavenDbSession(CurrentSession);
     if (!storageSession.IsInitialized)
     {
         storageSession.ForcedInitialize();
     }
     return storageSession;
 }