[CSHARP-1589] OfType doesn't work for an embedded array. Created: 02/Mar/16 Updated: 18/May/16 Resolved: 14/Mar/16 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | API |
| Affects Version/s: | 2.2.3 |
| Fix Version/s: | 2.2.4 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Greg | Assignee: | Craig Wilson |
| Resolution: | Done | Votes: | 2 |
| Labels: | driver | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
c# / net 4.5, mongo 3.2.3 |
||
| Description |
|
please find method which calls to get people entries with casting to derived class object var people = database.GetDatabase("Test") .GetCollection<Person>("People").AsQueryable(); .OfType()." class Person } class Address { } class Phone : Address { public string Number { get; set; } } } |
| Comments |
| Comment by Githook User [ 14/Mar/16 ] |
|
Author: {u'username': u'craiggwilson', u'name': u'Craig Wilson', u'email': u'craiggwilson@gmail.com'}Message: |
| Comment by Githook User [ 14/Mar/16 ] |
|
Author: {u'username': u'craiggwilson', u'name': u'Craig Wilson', u'email': u'craiggwilson@gmail.com'}Message: |
| Comment by Greg [ 02/Mar/16 ] |
|
stack overflow source: http://stackoverflow.com/questions/35758112/find-a-mongodb-document-based-on-element-match-of-a-specific-subtype-type |