小编Leo*_*eon的帖子

流利的nhibernate不支持异常newexpression

任何人都可以帮我弄清楚我做错了什么.我是nhibernate的新手,我发现很难真正适应它.我有这个问题:

        var results2 = (from purchase in _session.Query<Purchase>()
                        group purchase by new { purchase.symbol } into purchases
                        select new Quote()
                        {
                            shares= purchases.Sum(p => p.shares)
                        }).ToList();
Run Code Online (Sandbox Code Playgroud)

但我得到notsupportedexception并且错误消息只是newexpression.

nhibernate linq-to-nhibernate

10
推荐指数
1
解决办法
973
查看次数

标签 统计

linq-to-nhibernate ×1

nhibernate ×1