orm - Nhibernate SQL named queries and projection -


i've mapped class sql server table , use sql named query retrieve rows it. don't want of columns on pages (e.g. if it's document, want display full content on "view details" page only, while title can on list , "view details" page.

if don't select of columns of table in question, indexoutofrangeexception on columns i've left out.

is there way project columns i'm interested in on named queries or have create pocos different scopes of application?

regards, f.

you want nhibernate ad-hoc mapping.

p.s.: others have said, should @ least take @ hql, criteria or nhibernate.linq. , handle generated sql, uses nhibernate profiler.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -