i'm trying to use
http://www.castleproject.org/index.php/ActiveRecord because it save me from creating xml mapping file.
FIRST QUESTION
i'm not able to use second level cache, i enbled it but i continue to see sql queries to db (using MSSQL Profiler). Some one can suggest a simple working example on how to use cache with nhibernate ?
SECOND QUESTION
reading this forum i saw code like this:
Code:
[Class(Table = "`sample`")]
public partial class @Sample
{
[Cache(Usage = CacheUsage.ReadWrite)]
private Type someField/Property;
}
how is it made ? Using something from nhibernate.contrib ? someone has reference ?