In the previous post, I described the basics of NHibernate's IInterceptor as well as using it to manage transaction-connected actions. It's time to move on and know better the other methods of this interface. Am I dirty? Yes I am! The very next method is connected with the term: dirtyness. During a flush, which occurs … Continue reading NHibernate interceptor magic tricks, pt. 2
NHibernate
NHibernate interceptor magic tricks, pt. 1
NHibernate 3.0 is here! I've pushed it to a few solutions I'm working on as soon as it became stable. There are some nice changes (for instance polymorphic loads and gets and finally LINQ with the Remotion backup) but there are some core elements, which still are not well understood in the society of NH … Continue reading NHibernate interceptor magic tricks, pt. 1
NHibernating with interfaces as entities, pt. 2
The solution to the question, what can go wrong with NHibernate, when you use interfaces as your entities mapped with NH is... naming. When you try to save a transient object, to make it persistent with NH, you call ISession.Save(object) method. If you drilled down its implementation you'd see that it fires NH's event SaveOrUpdateEvent … Continue reading NHibernating with interfaces as entities, pt. 2
NHibernating with interfaces as entities, pt. 1
No catchy title this time:P Have you ever considered using interfaces as entities in your application with NH as ORM? If not, and you never considered this option I can share a few thoughts about it with you. Proxifing an interface is easier than proxifing a class, especially when using a tool like DynamicProxy which … Continue reading NHibernating with interfaces as entities, pt. 1
Themis wants you to hibernate her!
Recently, I've been working on project which in the near future will have a quite complex authorization rules. Additionally, these rules will affect the display, simply filtering data sets, which one can view. Instantly I thought about Themis and it's 'future feature' allowing to integrate with NH. What I'd like to have is simple Themis' … Continue reading Themis wants you to hibernate her!
I demand IDemand
The main interface of Themis is IDemand. An example implementations: A simple interface, with no members at all. The class implementing it defines the demand name as well as the result which should be provided by the system evaluating the demand. Implementations of IDemand should be contextful, passing all the needed context for the demand … Continue reading I demand IDemand
Solrnet NHibernate integration
Every developer which creates a scalable applications with high read/write ratio finally has to move to some query oriented storage, which allows almost instant, advanced querying. Solr is one of the frequently used solutions, providing a nice performance with advanced indexing/querying. Talking to Solr needs an API and for .NET and you can use SolrNet. … Continue reading Solrnet NHibernate integration