Inheritance between diagrams.

4 posts, 0 answers
  1. Przemysław
    Przemysław avatar
    18 posts
    Member since:
    Apr 2014

    Posted 05 Aug 2014 Link to this post

    How to add iheritance connections between diagrams?
    I have 2 diagrams: on the first one I have IBo Interface. When making inheritance connections to entities from the first diagram there is no problem.
    But how to add connection to the IBo from entities on the second diagram?
  2. Doroteya
    Admin
    Doroteya avatar
    502 posts

    Posted 06 Aug 2014 Link to this post

    Hello Przemysław,

    Thank you for contacting us.

    Based on the provided information, I was unable to completely understand the idea you have in mind. Could you tell me which one of the following matches it:
    1. You have two .rlinq files, the interface is part of one of them, and you need to implement it in a persistent class from the other one.
    2. You have one .rlinq file, which contains two diagrams. The interface is placed on one of them and the class that has to implement it is in the other one.

    I am looking forward to your feedback.


    Regards,
    Doroteya
    Telerik
     
    OpenAccess ORM is now Telerik Data Access. For more information on the new names, please, check out the Telerik Product Map.
     
  3. DevCraft banner
  4. Przemysław
    Przemysław avatar
    18 posts
    Member since:
    Apr 2014

    Posted 06 Aug 2014 in reply to Doroteya Link to this post

    Second option.
  5. Doroteya
    Admin
    Doroteya avatar
    502 posts

    Posted 07 Aug 2014 Link to this post

    Hi Przemysław,

    Thank you for getting back to us.

    To achieve the necessary result you can perform the following:
    1. Open the .rlinq file in Visual Designer.
    2. From Model Object Explorer open the diagram that holds the interface.
    3. In Model Object Explorer, expand the diagram that holds the class you need to implement the interface.
    4. Drag-and-drop the class next to the interface and add inheritance between them.
    5. Save the .rlinq file.

    Optional: If you do not want two diagrams to contain one and the same class, you can choose which one of them should not hold it and do the following:
    1. In Model Object Explorer, expand the digram that should not have the class in it.
    2. Locate the class, right-click on it and select Delete From Diagram.
    3. Save the .rlinq file.

    Note that after you create the inheritance between the class and the interface (and save the model) deleting the class from one of the diagrams will not break the inheritance.

    I hope this helps. If you have additional questions, do not hesitate to get back to us.


    Regards,
    Doroteya
    Telerik
     
    OpenAccess ORM is now Telerik Data Access. For more information on the new names, please, check out the Telerik Product Map.
     
Back to Top