[CSHARP-1664] Allow dynamically created Expression<Func<>> to be used in a Mongo Linq query Created: 12/May/16 Updated: 23/Sep/16 Resolved: 09/Aug/16 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 2.3 |
| Type: | New Feature | Priority: | Trivial - P5 |
| Reporter: | Alexandar Aramov | Assignee: | Craig Wilson |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
var filter = FilterBuilder.BuildExpressionFilter<BetPurchase>() var query = _storage.AsQueryable() This won't work because AsQueryable is not supported. |
| Comments |
| Comment by Githook User [ 09/Aug/16 ] |
|
Author: {u'username': u'craiggwilson', u'name': u'Craig Wilson', u'email': u'craiggwilson@gmail.com'}Message: |
| Comment by Githook User [ 09/Aug/16 ] |
|
Author: {u'username': u'alex687', u'name': u'Alexandar Aramov', u'email': u'alex.aramov@gmail.com'}Message: |
| Comment by Githook User [ 09/Aug/16 ] |
|
Author: {u'username': u'alex687', u'name': u'Alexandar Aramov', u'email': u'alex.aramov@gmail.com'}Message: |
| Comment by Githook User [ 09/Aug/16 ] |
|
Author: {u'username': u'craiggwilson', u'name': u'Craig Wilson', u'email': u'craiggwilson@gmail.com'}Message: |
| Comment by Githook User [ 09/Aug/16 ] |
|
Author: {u'username': u'alex687', u'name': u'Alexandar Aramov', u'email': u'alex.aramov@gmail.com'}Message: |
| Comment by Githook User [ 09/Aug/16 ] |
|
Author: {u'username': u'alex687', u'name': u'Alexandar Aramov', u'email': u'alex.aramov@gmail.com'}Message: |
| Comment by Craig Wilson [ 16/May/16 ] |
| Comment by Craig Wilson [ 16/May/16 ] |
|
Ok, I'll schedule it in for 2.3. Thanks for the PR. |
| Comment by Alexandar Aramov [ 12/May/16 ] |
|
Hi Craig , Basically yes , I can't pass Expression<Func<T,bool> without AsQueryable(). Alex |
| Comment by Craig Wilson [ 12/May/16 ] |
|
Hi Alexandar, Thanks for your pull request. It looks great. My only question is why users would be doing this. This is effectively a no-op (as is obvious from your pull request). Is the scenario here that you can't pass an Expression<Func<T,bool>> in an embedded context without using AsQueryable()? Craig |