TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Denis Morgan
NA
72
22.2k
Convert List to IList<T>
Sep 8 2020 1:18 AM
I have a list of my model object from NHibernate result set and would wish to have a genric method to convert it to
IList<T>
I have this
var l = session.CreateSQLQuery(@query).SetResultTransformer(Transformers.AliasToEntityMap).List();
need to convert to
IList<T> ls = new List<T>();
such that any List returned from nhibernate can easly be matched to any model class
Reply
Answers (
3
)
Nhibernate generic method to Query different Model
insert csv base on line