In my POCO class I have 16 attributes that are mapped to the database table with 16 columns. Now I have to write methods that only fetch a subset of columns from the table using NHIbernate. How to perform this thing when I dont want to fetch all the attributes of the persisted objects in the database.
Share
Projections enable the returning of something other than a list of entities from a query.
NHibernate can also map the projected result to a typed list.