public HibernateStorageImplementator(HibernateStorage parentStorage, StorageQuery query){ this.storage = parentStorage; this.factoryProvider = storage.FactoryProvider; lock (factoryProvider){ this.factory = factoryProvider.Get(query.System); this.session = factory.GetCurrentSession(); //in cases of temporary database changes if(((SessionImpl)this.session).Factory!=this.factory){ this.session = factory.OpenSession(); } session.FlushMode = FlushMode.Never; } this.query = query; }
public Page <StorageItem> Search(StorageQuery query) { throw new NotImplementedException(); }
public StorageException(string message, Exception inner, StorageQuery query) : base(message, inner){ Query = query; }
public StorageException(string message, StorageQuery query) : base(message){ Query = query; }
// // For guidelines regarding the creation of new exception types, see // http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconerrorraisinghandlingguidelines.asp // and // http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/html/csharp07192001.asp // public StorageException(StorageQuery query){ Query = query; }