Hi! I have a simple object hierarchy :) :

    public abstract class AbstractObject : Entity
        [Field, Key]
        public Guid Id { get; private set; }

    public abstract class BlogPost : AbstractObject 
        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's gravatar image


One Answer:

Hello buck,

Thanks for submitting the issue. Your "simple object hierarchy" found at least 2 bugs in DataObjects.Net v4. Good job! ;)

We are starting the investigation immediately.

answered Oct 28 '09 at 14:04

Dmitri%20Maximov's gravatar image

Dmitri Maximov

buck wrote: Lot more... Just wait, I'll be your best tester :wink:

(Oct 28 '09 at 14:04) Editor Editor's gravatar image

The issue has been fixed. See nightly build.

But, please, don't stop. Give us another bug reports :)

(Oct 28 '09 at 14:04) Dmitri Maximov Dmitri%20Maximov's gravatar image
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
toggle preview


Once you sign in you will be able to subscribe for any updates here



Asked: Oct 28 '09 at 13:39

Seen: 3,132 times

Last updated: Oct 28 '09 at 13:39

powered by OSQA