anthonyreilly / NetCoreForce

Salesforce REST API toolkit for .NET Standard and .NET Core
MIT License
111 stars 63 forks source link

Fix for SelectType not being respected and Fix for OrderBy/OrderByDescending failing on queries #10

Closed 640774n6 closed 4 years ago

640774n6 commented 4 years ago

SelectType was not being included when creating the query in ForceClientSalesforceProviderExtensions.

Calling OrderBy/OrderByDescending on a SalesforceQuery would throw the exception: System.InvalidCastException : Unable to cast object of type 'NetCoreForce.Linq.Helper.Query1[NetCoreForce.Models.SfCase]' to type 'System.Linq.IOrderedAsyncQueryable1[NetCoreForce.Models.SfCase]'.

Added missing unit tests for OrderBy/OrderByDescending

640774n6 commented 4 years ago

Any plans to make a release/pre-release of NetCoreForce.Linq with these changes?

anthonyreilly commented 4 years ago

Yep, I'll have it published in the next couple days