[CSHARP-1691] Select with create new object throw exception Created: 20/Jun/16 Updated: 15/Jun/22 Resolved: 15/Jun/22 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | Linq, LINQ3 |
| Affects Version/s: | 2.2.4 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Ilya | Assignee: | Robert Stam |
| Resolution: | Duplicate | Votes: | 1 |
| Labels: | triaged | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Windows |
||
| Issue Links: |
|
||||||||||||
| Epic Link: | CSHARP-3615 | ||||||||||||
| Description |
|
Hello. In c# driver version 2.0.1.-rc this is code was worked. public class Person public string Name { get; set; } } public class SubObject public string SomeData { get; set; } public SubObject(Person pers, string someData) { Pers = pers; SomeData = someData; }} static void Main(string[] args) var person = new Person() { Id = "12", Name = "Alex" }; ; var result1 = objectsCollection.AsQueryable().Where(o => o.Name.Length > 4).ToList(); // return 1 object This is bug or not? |
| Comments |
| Comment by Robert Stam [ 15/Jun/22 ] |
|
This ticket was originally opened against LINQ2, but we're no longer enhancing LINQ2. We have an equivalent ticket |
| Comment by Ilya [ 25/Jul/16 ] |
|
Can anybody comment this issue? |
| Comment by Ilya [ 20/Jun/16 ] |
|
Exception: An unhandled exception of type 'System.NotSupportedException' occurred in MongoDB.Driver.dll |