payload: {"action":"opened","issue":{"url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/5034","repository_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate","labels_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/5034/labels{/name}","comments_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/5034/comments","events_url":"https://api.github.com/repos/aspnetboilerplate/aspnetboilerplate/issues/5034/events","html_url":"https://github.com/aspnetboilerplate/aspnetboilerplate/issues/5034","id":522926236,"node_id":"MDU6SXNzdWU1MjI5MjYyMzY=","number":5034,"title":"Automapper ProjectTo issue in ABP v5.0.0","user":{"login":"dkisic10","id":6144957,"node_id":"MDQ6VXNlcjYxNDQ5NTc=","avatar_url":"https://avatars0.githubusercontent.com/u/6144957?v=4","gravatar_id":"","url":"https://api.github.com/users/dkisic10","html_url":"https://github.com/dkisic10","followers_url":"https://api.github.com/users/dkisic10/followers","following_url":"https://api.github.com/users/dkisic10/following{/other_user}","gists_url":"https://api.github.com/users/dkisic10/gists{/gist_id}","starred_url":"https://api.github.com/users/dkisic10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkisic10/subscriptions","organizations_url":"https://api.github.com/users/dkisic10/orgs","repos_url":"https://api.github.com/users/dkisic10/repos","events_url":"https://api.github.com/users/dkisic10/events{/privacy}","received_events_url":"https://api.github.com/users/dkisic10/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-11-14T15:19:56Z","updated_at":"2019-11-14T15:19:56Z","closed_at":null,"author_association":"NONE","body":"After migrating to new ABP version I am having issue with **ProjectTo** method of Abp.AutoMapper. This worked normally in previous versions and now it doesn't. I couldn't find the explanation in documentation of ABP or Automapper and it interests why the same code used to work in previous versions?\r\n\r\nI have **Partner** class with three properties where one is calculated (FullName):\r\n\r\n        public string Name { get; set; }\r\n\r\n        public string Code { get; set; }\r\n\r\n        [NotMapped]\r\n        public string FullName => $\"{Code}-{Name}\";\r\n\r\nAnd I have **Activity** class with reference navigation property Partner:\r\n\r\n        public Guid? PartnerId { get; set; }\r\n\r\n        [ForeignKey(nameof(Partner))]\r\n        public virtual Partner Partner { get; set; }\r\n\r\nAnd I also have **ActivityGridDto** which is Automapped from Activity with property:\r\n\r\n        public string PartnerFullName { get; set; }\r\n    \r\nAnd after I try to project IQueryable<Activity> to IQueryable<ActivityGridDto>:\r\n\r\n        var mappedQuery = ObjectMapper.ProjectTo<ActivityGridDto>(query);\r\n\r\nI get **System.NullReferenceException**. Normally, it happens because Activities table contains some rows where Partner is not specified and then it tries to load FullName from Partner which is null. Now I know I can handle this problem pretty easily by creating mapping profile and specifying how to map PartnerFullName property in ActivityGridDto but it interests me why mapping a calculated property from nullable navigation property now throws an exception and it doesn't return empty string anymore."}}
other: {"actor":{"display_login":"dkisic10"}}