NHibernate mapping error ([EntityName] not mapped)
问题 My project (c#, nhibernate, npgsql, nlog) has one entity named Entry and should be mapped to the database table named test . Table contains some test entries. My application code is as follows: public void work() { ISessionFactory sessions = new Configuration().Configure().BuildSessionFactory(); ISession session = sessions.OpenSession(); IList<Entry> entries = session.CreateQuery("from Entry").List<Entry>(); foreach (Entry e in entries) { logger.Debug("Entry: " + e.id + " with " + e.name); }