What is the difference between a nhibernate query cache and entity cache when using second level caching?
问题 I am trying to setup nhibernate second level caching and i see in this article, and i am trying to understand the difference between query caching and entity caching. It says you need to add Cache.ReadOnly(); or Cache.ReadWrite(); on every single entity mapping like this: public class CountryMap : ClassMap<country> { public CountryMap() { Table("dropdowns"); Id(x => x.Id, "pkey"); Map(x => x.Name, "ddlong"); Map(x => x.Code, "dddesc"); Where("ddtype = 'COUNTRY'"); //Informing NHibernate that