Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using both System.Linq and System.Linq.Dynamic.Core #106

Closed
Schaussi opened this issue Oct 9, 2017 · 3 comments
Closed

Using both System.Linq and System.Linq.Dynamic.Core #106

Schaussi opened this issue Oct 9, 2017 · 3 comments

Comments

@Schaussi
Copy link

Schaussi commented Oct 9, 2017

Hi,

is it possible to use both libraries in one .cs file?
I am using .Net Core 1.1 and VS2017.
It seems to work when I only include one library.
Using both, I get an error like "list does not contain a definition for OrderBy", e.g. when using command .OrderBy("mycol asc");
Because I also need to use the common linq expressions, it would be great to be able to use both libs.
Thank you

@StefH
Copy link
Collaborator

StefH commented Oct 10, 2017

Strange.

See unit test here:
https://github.com/StefH/System.Linq.Dynamic.Core/blob/master/test/System.Linq.Dynamic.Core.Tests/QueryableTests.OrderBy.cs#L10

Both var orderById = qry.OrderBy("Id"); and testList.OrderBy(x => x.Id) are used here?

@Schaussi
Copy link
Author

You are right. I retried again today and it worked fine without any problems.
Maybe a simple VS restart has solved this issue.
Thank you!

@StefH
Copy link
Collaborator

StefH commented Oct 13, 2017

Cool !

@StefH StefH closed this as completed Oct 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants