[CSHARP-2596] AsQueryable with session (usable during transaction) Created: 19/Apr/19 Updated: 28/Oct/23 Resolved: 28/Apr/20 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | Linq, Session Management, Transactions |
| Affects Version/s: | 2.11.0 |
| Fix Version/s: | 2.11.0 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Origin .NET | Assignee: | Robert Stam |
| Resolution: | Fixed | Votes: | 3 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Description |
|
While writing my own application tests, I just noticed the IMongoCollectionExtensions.AsQueryable extension method lacks session support unlike all other extension methods. This means you can't use linq queries to access data modified within a transaction. The fix is quite simple and I created this issue for the pull request. |
| Comments |
| Comment by Githook User [ 09/Jun/20 ] |
|
Author: {'name': 'rstam', 'email': 'robert@robertstam.org', 'username': 'rstam'}Message: |
| Comment by Githook User [ 05/Jun/20 ] |
|
Author: {'name': 'rstam', 'email': 'robert@robertstam.org', 'username': 'rstam'}Message: |
| Comment by Githook User [ 05/Jun/20 ] |
|
Author: {'name': 'Origin .NET', 'email': 'origindotnet@gmail.com', 'username': 'origindotnet'}Message: |
| Comment by Róger Lopes [ 12/Nov/19 ] |
|
I am currently in need for this feature too. Don't know how to bypass it without this new implementations. Please approve it |
| Comment by Shahaf Nahmias [ 14/Jun/19 ] |
|
I highly recommend implementing this. |
| Comment by Origin .NET [ 24/Apr/19 ] |
|
I added the test class MongoQueryableSessionTests to the pull request with all the Linq tests duplicated in order to check if it works during a transaction (inside and outside transaction). |