SourceMultiplicity="One" problem?

Thread is closed for posting
3 posts, 0 answers
  1. Kendall Bennett
    Kendall Bennett avatar
    80 posts
    Member since:
    Feb 2010

    Posted 15 Jul 2011 Link to this post

    In my model, which was converted over from Entity Framework, many of the associations came over from Entity Framework as 1:Many associations in that it is expected that there would always be a reference to a particular entity. When I edit those associations in the visual designer, it always changes them to:


    in the XML file, so they become 0-1:Many associations. There is no way to edit these values from the visual designer at all, so I get the impression that in reality every association is really a 0-1:Many in OpenAccess? How would an association ever get converted to a 1:Many association?

    Also, related to this I noticed something annoying. Whenever I change the association it always renamed the backing fields for the properties involved in the endpoints. The properties themselves don't get renamed, but the backing fields do? For instance I might have a property called 'Products', and the backing field is '_Products' and then when I edit the association and save it, the backing field gets changed to '_Products1'. I know we never deal directly the backing fields, so the name is not that important, but it does cloud my change lists with a bunch of irrelevant changes in the XML file.

    Is there any reason it cannot use the original name of the backing fields in this case?
  2. Zoran
    Zoran avatar
    534 posts

    Posted 20 Jul 2011 Link to this post

    Hello Kendall Bennett,

     Unfortunately, at the moment 1:1 associations can not be modeled due to some restrictions in the OpenAccess runtime. For the moment you can workaround this issue looking into the single object that would be part of the collection on the n side of the association. Since we are getting more and more requests for this feature, we are evaluating the development required for it and we will schedule it for one of the next releases. At the moment we are preparing a KB article with a list of possible workarounds for different scenarios. 

    I will give you an update in this forum thread after we have this KB uploaded.

    Kind regards,
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  3. Kendall Bennett
    Kendall Bennett avatar
    80 posts
    Member since:
    Feb 2010

    Posted 20 Jul 2011 Link to this post

    Ok thanks.
Back to Top