日期:2014-05-17 浏览次数:20448 次
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<MemberGroupTreeGridModel>();
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();