I have the following document structure in mongoDb:
I want to query it from an asp.net C# app using linq. I would like a distinct list of all the t values. If I run this code I get a list of t values for all of my documents and the value of t is repeated over documents.
var query = from m in collection.AsQueryable()
select m.t;
I therefore want a distinct list of t. I amended my code to the following but nothing is returned and there is no error message.
var query = (from p in collection.AsQueryable()
select p.t).Distinct();
What am I doing wrong?
