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 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Kamil Krupski154 reputationPosted Sep 7, 2020, 10:36 PM EDT