Hi! I have a simple object hierarchy :) :
[HierarchyRoot]
public abstract class AbstractObject : Entity
{
[Field, Key]
public Guid Id { get; private set; }
...
}
public abstract class BlogPost : AbstractObject
{
[Field]
public BlogCategory Category { get; set; }
...
}
public sealed class Article : BlogPost
{
}
I want to receive list of Categories:
Query<Article>.All.Select(p => p.Category)
I receive enumeration of NULLs. Then I make a trick and all becomes fine:
Query<Article>.All.Where(p => p.Category == p.Category).Select(p => p.Category)
It is not a problem, but an annoyance.
This thread was imported from our support forum. The original discussion may contain more detailed answer.
Original topic by buck.
asked
Oct 28 '09 at 13:39
Editor
36●3●74●153