任何人都可以帮我弄清楚我做错了什么.我是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.