{"id":5785,"date":"2014-04-07T09:08:58","date_gmt":"2014-04-07T09:08:58","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/07\/problem-about-northwind-collection-of-common-programming-errors\/"},"modified":"2014-04-07T09:08:58","modified_gmt":"2014-04-07T09:08:58","slug":"problem-about-northwind-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/07\/problem-about-northwind-collection-of-common-programming-errors\/","title":{"rendered":"problem about northwind-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/33d1848da81c469e3f19bd7e1d8919d9?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nFemaref<br \/>\nc# linq linq-to-sql northwind<br \/>\nThe following code is generating a runtime error and I have no idea why.from o in Orders group o by o.Employee into employeeOrders select new {employeeOrders.Key.EmployeeID,employeeOrders.Key.FirstName,Orders = from eord in employeeOrdersorderby eord.OrderIDselect new {eord.OrderID,eord.OrderDate,OrderTotal=eord.OrderDetails.Sum (od =&gt; od.UnitPrice)} }The error is Member access &#8216;System.Decimal UnitPrice&#8217; of &#8216;LINQPad.User.OrderDetails&#8217; not legal on type &#8216;LINQPad.User.OrdersI&#8217;ve also tried this<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Femaref c# linq linq-to-sql northwind The following code is generating a runtime error and I have no idea why.from o in Orders group o by o.Employee into employeeOrders select new {employeeOrders.Key.EmployeeID,employeeOrders.Key.FirstName,Orders = from eord in employeeOrdersorderby eord.OrderIDselect new {eord.OrderID,eord.OrderDate,OrderTotal=eord.OrderDetails.Sum (od =&gt; od.UnitPrice)} }The error is Member access &#8216;System.Decimal UnitPrice&#8217; of &#8216;LINQPad.User.OrderDetails&#8217; not legal on type [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5785","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5785","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5785"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5785\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5785"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5785"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5785"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}