-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: SAMUS
-
None
Given the following entity and an empty collection in the database:
public class Post
{
[MongoId]
public Guid Id
public DateTime LastAccess { get; set; }
public List<string> Tags
{ get; set; }}
The following query should return an empty list but it returns a list containing a single empty Post entity:
List<string> SearchTags = new List<string>
{"test"};
var result = SearchTags.Aggregate(posts.Linq(), (current, tag) => current.Where(x => x.Tags.Any(t => t == tag))).OrderByDescending(
x => x.LastAccess).Skip(skip).Take(take).ToList();