nhibernate linq
var memberdto = ReadonlySession.Query<MemberGroup>().Select(n => new MemberGroupTreeGridModel { id = n.Id, name = n.Name, _parentId = n.ParentId, level = n.Level, sort = n.Sort, useType = n.UseType }).ToList();