Title: Issue with Inlinecount with navigation properties · Issue #63 · beyond-code-github/LinqToQuerystring · GitHub
Open Graph Title: Issue with Inlinecount with navigation properties · Issue #63 · beyond-code-github/LinqToQuerystring
X Title: Issue with Inlinecount with navigation properties · Issue #63 · beyond-code-github/LinqToQuerystring
Description: Hi, I'm having some trouble with using the inlinecount with a child navigation property using projections. Here are the classes: public class Person { public int ID { get; set; } public string FirstName { get; set; } public string LastNa...
Open Graph Description: Hi, I'm having some trouble with using the inlinecount with a child navigation property using projections. Here are the classes: public class Person { public int ID { get; set; } public string Firs...
X Description: Hi, I'm having some trouble with using the inlinecount with a child navigation property using projections. Here are the classes: public class Person { public int ID { get; set; } public string ...
Opengraph URL: https://github.com/beyond-code-github/LinqToQuerystring/issues/63
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Issue with Inlinecount with navigation properties","articleBody":"Hi,\n\nI'm having some trouble with using the inlinecount with a child navigation property using projections.\n\nHere are the classes:\n\n```\npublic class Person\n{\n public int ID { get; set; }\n public string FirstName { get; set; }\n public string LastName { get; set; }\n public ICollection\u003cAddress\u003e Addresses { get; set; }\n}\n\npublic class Address\n{\n public int ID { get; set; }\n public string FirstLine { get; set; }\n public string SecondLine { get; set; }\n}\n```\n\nAnd here is the relevant code:\n\n_unitOfWork.PersonRepository.GetDbSet()\n .Select(p =\u003e new PersonDTO\n {\n ID = p.ID,\n FirstName = p.FirstName,\n LastName = p.LastName,\n Address = p.Address.Select(x =\u003e new AddressDTO { Id = x.ID, FirstLine = x.FirstLine, SecondLine = x.SecondLine}).ToList()\n })\n .LinqToQuerystring(typeof(PersonDTO), query));\n\nEverything works fine (including filtering, sorting) except when I introduce the Inlinecount=allpages querystring. The inner exception that i'm getting is: \n\n\"There is already an open DataReader associated with this Command which must be closed first.\"\n\nIf I do a ToList().AsQueryable() between the .linqToQueryString and the Select statement it works fine but that means that first the entire dataset is queried and then the filtering happens on the returned dataset. I would like to avoid that as we're dealing with a large dataset. Is there any way I can get the required data with a single call to the API?\n\nThanks\nBest Regards\n\nVishal\n","author":{"url":"https://github.com/maganuk","@type":"Person","name":"maganuk"},"datePublished":"2015-11-17T17:26:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/63/LinqToQuerystring/issues/63"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:19fb4627-9053-af7f-a875-c2442367c079 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AF52:ADDE1:69BDBD9:902A696:697865F5 |
| html-safe-nonce | cf3b603b4a925e415e9d8d5a850dc9c6792a8fa3774e15980fa119565ed98bfb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjUyOkFEREUxOjY5QkRCRDk6OTAyQTY5Njo2OTc4NjVGNSIsInZpc2l0b3JfaWQiOiI3MjkxMTk3OTc0NTA1ODc0OTMzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 04ef5250ea1e9f6e36a79bde8839bb18ee8b2bebd6fa0757f1ecd50ae467faaa |
| hovercard-subject-tag | issue:117406162 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/beyond-code-github/LinqToQuerystring/63/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c7fdac58177a733d6d0a56ff52624269620dff56b4e8989d20df97b9e3ce7074/beyond-code-github/LinqToQuerystring/issues/63 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c7fdac58177a733d6d0a56ff52624269620dff56b4e8989d20df97b9e3ce7074/beyond-code-github/LinqToQuerystring/issues/63 |
| og:image:alt | Hi, I'm having some trouble with using the inlinecount with a child navigation property using projections. Here are the classes: public class Person { public int ID { get; set; } public string Firs... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | maganuk |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2981c597c945c1d90ac6fa355ce7929b2f413dfe7872ca5c435ee53a24a1de50 |
| turbo-cache-control | no-preview |
| go-import | github.com/beyond-code-github/LinqToQuerystring git https://github.com/beyond-code-github/LinqToQuerystring.git |
| octolytics-dimension-user_id | 795965 |
| octolytics-dimension-user_login | beyond-code-github |
| octolytics-dimension-repository_id | 9010972 |
| octolytics-dimension-repository_nwo | beyond-code-github/LinqToQuerystring |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 9010972 |
| octolytics-dimension-repository_network_root_nwo | beyond-code-github/LinqToQuerystring |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 520b65a872113b919c1bbdb03834a50af15859fd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width