{"action":"opened","issue":{"url":"https://api.github.com/repos/nhibernate/nhibernate-core/issues/1934","repository_url":"https://api.github.com/repos/nhibernate/nhibernate-core","labels_url":"https://api.github.com/repos/nhibernate/nhibernate-core/issues/1934/labels{/name}","comments_url":"https://api.github.com/repos/nhibernate/nhibernate-core/issues/1934/comments","events_url":"https://api.github.com/repos/nhibernate/nhibernate-core/issues/1934/events","html_url":"https://github.com/nhibernate/nhibernate-core/issues/1934","id":389296183,"node_id":"MDU6SXNzdWUzODkyOTYxODM=","number":1934,"title":"Nhibernate 5.1 not support mysql when query by sum","user":{"login":"tjliuqian","id":31650742,"node_id":"MDQ6VXNlcjMxNjUwNzQy","avatar_url":"https://avatars0.githubusercontent.com/u/31650742?v=4","gravatar_id":"","url":"https://api.github.com/users/tjliuqian","html_url":"https://github.com/tjliuqian","followers_url":"https://api.github.com/users/tjliuqian/followers","following_url":"https://api.github.com/users/tjliuqian/following{/other_user}","gists_url":"https://api.github.com/users/tjliuqian/gists{/gist_id}","starred_url":"https://api.github.com/users/tjliuqian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjliuqian/subscriptions","organizations_url":"https://api.github.com/users/tjliuqian/orgs","repos_url":"https://api.github.com/users/tjliuqian/repos","events_url":"https://api.github.com/users/tjliuqian/events{/privacy}","received_events_url":"https://api.github.com/users/tjliuqian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-10T13:16:10Z","updated_at":"2018-12-10T13:16:10Z","closed_at":null,"author_association":"NONE","body":"when the database table is empty,the system run these by linq:\r\nroomRepo.Query<RoomEntity>().Where(p=>p.State==2).Sum(p=>p.Amount);\r\nthen throw exception \r\n可为空的对象必须具有一个值。   在 System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)\r\n   在 lambda_method(Closure , IEnumerable`1 )\r\n   在 NHibernate.Linq.DefaultQueryProvider.ExecuteQuery(NhLinqExpression nhLinqExpression, IQuery query, NhLinqExpression nhQuery)"}}
{"actor":{"display_login":"tjliuqian"}}