Best model ?

2 posts, 0 answers
  1. Gerhard
    Gerhard avatar
    4 posts
    Member since:
    Sep 2008

    Posted 17 Apr 2009 Link to this post

    Hi,

    I have three possible types to be listed. A member could be A, AB or B, no its not a 'bloody problem. I also want to use the feature of managed collections.

    If I use inheritance, I can't model the relations correct, but managed collections working fine,

    Now I am thinking about interfaces, If I define the interfaces IA, and IB, I can have classes, implementing one of these or both. But whats about managed collections and whats about myScope.Extent(of ...)?

    How can I get lists of all IA implementors, IB implementors and IA and IB implementors? Or how can I get a list of all instances implementing IA and IB and no one which implements only one interface?

    Did anybody solve such a problem?

    Thanks for helping.

    Gerhard
  2. Zoran
    Admin
    Zoran avatar
    534 posts

    Posted 21 Apr 2009 Link to this post

    Hi Gerhard,

    OpenAccess supports mapping interfaces. You can refer to our online documentation for further information on that topic.
    Unfortunately queries that extract only those instances that implement a certain interface are not still supported. This could be a task for the future though. If you have any further requests.suggestions we would be glad if you share them with us.

    Regards,
    Zoran
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. DevCraft banner
Back to Top