[HierarchyRoot(InheritanceSchema.ConcreteTable)]
public abstract class EntityBase : Entity
{
    [Field, Key]
    public int Id { get; private set; }
}

public class ConcreteEntity : EntityBase 
{
    // ...
}

DO creates a table for both EntityBase and ConcreteEntity. Why? Is it possible not to create the table for the abstract class (EntityBase)?

This thread was imported from our support forum. The original discussion may contain more detailed answer.

asked May 19 '10 at 05:33

ara's gravatar image

ara
395858791


One Answer:

Definitely a bug, although quite innocent.

I've opened the following issue: http://code.google.com/p/dataobjectsdot ... ail?id=658

Can't promise that it'll be fixed asap.

answered May 19 '10 at 08:52

Dmitri%20Maximov's gravatar image

Dmitri Maximov
22111211

The issue is fixed today.

(May 19 '10 at 08:52) 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

Subscription:

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

Tags:

×573

Asked: May 19 '10 at 05:33

Seen: 3,706 times

Last updated: May 19 '10 at 05:33

powered by OSQA