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
I have this
var l = session.CreateSQLQuery(@query).SetResultTransformer(Transformers.AliasToEntityMap).List();
need to convert to
IList ls = new List();
such that any List returned from nhibernate can easly be matched to any model class
3 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh KumarPosted Sep 9, 2020, 9:43 AM
Denis MorganPosted Sep 8, 2020, 2:53 AM
Kamil KrupskiPosted Sep 8, 2020, 2:36 AM