Treat abstract classes as interfaces
I mean the classes that are outside any hierarchy
3
votes
1 comment
-
AdminAlex 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
{
...
}