Skip to content
This repository has been archived by the owner on Dec 3, 2017. It is now read-only.

Remove EF Core workarounds where possible #43

Merged
merged 1 commit into from
Jul 13, 2016
Merged

Remove EF Core workarounds where possible #43

merged 1 commit into from
Jul 13, 2016

Conversation

AlekseyMartynov
Copy link
Contributor

No description provided.


return from d in temp
#warning TODO remove ToArray() when https://github.com/aspnet/EntityFramework/issues/3676 fix is released
return from d in _nwind.Order_Details.Include(d => d.Product.Category).ToArray()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AlekseyMartynov ,

Why do we need call the "ToArray()" method here? What difference comparing with "SalesByCategoryYear" method implementation?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not clear for me form aspnet/EntityFramework#3676 why two LINQ queries using let keyword and group by method works differently. So, if it does not works without .ToArray() let's just trust you and hope that it will be fixed in EF 1.0.1 ;)

@San4es San4es merged commit ee7b609 into DevExpress:master Jul 13, 2016
@AlekseyMartynov AlekseyMartynov deleted the cleanup-ef-workarounds branch July 13, 2016 16:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants