I suggest you ...

Treat abstract classes as interfaces

I mean the classes that are outside any hierarchy

3 votes
Vote 0 votes Vote Vote
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service

    You'll receive a confirmation email with a link to create a password (optional).

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Dmitri MaximovAdminDmitri Maximov (Project manager, Xtensive LLC) shared this idea  ·   ·  Admin →

    1 comment

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service

      You'll receive a confirmation email with a link to create a password (optional).

      Signed in as (Sign out)
      Submitting...
      • Alex UstinovAdminAlex Ustinov (Admin, Xtensive LLC) commented  · 

        This improvement should allow to query for an abstract class that derives from Entity but not in persistent hierarchy.
        So it should be possible to query for Organization in the following model sample:

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

        [Field]
        public string Name { get; set; }
        }

        [HierarchyRoot]
        public class Enterprise: Organization
        {
        ...
        }

        [HierarchyRoot]
        public class Department: Organization
        {
        ...
        }

      Knowledge Base and Helpdesk