castle activerecord - Avoid first level cache for an entity in NHibernate? -


I have a unit that is updated externally (triggers, using stored procedures) that means The unit can change in a single session without its knowledge, and it is necessary for me to always kill a database, and never use the unit from the first level cache.

Is it possible NHibernate (or indeed, the Castle Active Record)?

To disable a IStatelessSession first level cache in you < Using the code> ISession instead of

  (ISessionFactory sf = cfg.BuildSessionFactory ()) (iatatale session session = sf.OpenStatelessSession ()). }  

Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -