Hi I am trying to return a collection of building domain.
private long _id; private string _buildingName; private IList _rooms;
How about using the constructor of List that takes an IEnumerable? Then you can use:
List
IEnumerable
Buildings = new List(session.CreateCriteria(typeof(Building)).AddOrder(Order.Asc("buildingName")).List());