[CSHARP-1737] LinqToMongo.Inject() throws Execption Created: 05/Aug/16 Updated: 08/Aug/16 Resolved: 08/Aug/16 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | 2.2.4 |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Osman Erdem | Assignee: | Unassigned |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
var point = GeoJson.Point(GeoJson.Geographic(locationAddress.Coordinates.Longitude, locationAddress.Coordinates.Latitude)); var locationClause = Query<CarAuctionItem>.Near(y => y.Address.Location, point, maxDistance); collection.AsQueryable.Where(x => locationClause.Inject()).ToList(); |
| Comments |
| Comment by Craig Wilson [ 08/Aug/16 ] |
|
Hi Osman, We don't support the Query builders Inject method in the new API. It will still work with the old API, just not the new one. We have Craig |