Q2 Version and Error

7 posts, 0 answers
  1. Andrew
    Andrew avatar
    171 posts
    Member since:
    Jun 2009

    Posted 19 Jul 2011 Link to this post

    I have had previously some problems with Open Access and had to use entity model instead.
    [http://www.telerik.com/community/forums/orm/getting-started/using-orm-first-time.aspx]

    With the new version i have decided to see if any of the problems described in the link above have been fixed.

    The conversion from Entity Model appeared to work just fine.
    Then the creation of the Telerik OpenAccess Domain Service showed a slightly different wizard, I no longer had a choice of two mapping types. But unlike previously I actually get the entities to appear in the list, good sign. When compiling however I see exactly the same error as I used to before.

    "The entity 'Organisation' in DomainService 'cintDomainService' does not have a key defined. Entities exposed by DomainService operations must have at least one public property marked with the KeyAttribute. "

    Why has that not been fixed? The key attribute should really be there, just as it was in the entity model 4.0.

    Is telerik planning to address is issue at all?

    It just seems to me a little bit pointless to “upgrade” a project to something that does not actually work.

  2. PetarP
    Admin
    PetarP avatar
    754 posts

    Posted 25 Jul 2011 Link to this post

    Hi Andrew,

     We have already addressed that issue with working on the automatically generation of metadata classes where such attributes can be placed however those templates were not included in our official release. I can prepare and send them to you as I believe they will help you solve your problem.
    Please do let me know if that will work for you.

    Best wishes,
    Petar
    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. DevCraft banner
  4. Andrew
    Andrew avatar
    171 posts
    Member since:
    Jun 2009

    Posted 25 Jul 2011 Link to this post

    Yes, please send it to me.

    Thank you.
  5. PetarP
    Admin
    PetarP avatar
    754 posts

    Posted 28 Jul 2011 Link to this post

    Hello Andrew,

     I will give you link in this thread once the template are uploaded. That will be most probably some time tomorrow.

    Best wishes,
    Petar
    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!

  6. Andrew
    Andrew avatar
    171 posts
    Member since:
    Jun 2009

    Posted 09 Aug 2011 Link to this post

    Any news on this?
  7. PetarP
    Admin
    PetarP avatar
    754 posts

    Posted 12 Aug 2011 Link to this post

    Hello Andrew,

     I am sorry for the delay but we had some issues with the template. It will be uploaded today. I will write back here once its ready.

    All the best,
    Petar
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

  8. PetarP
    Admin
    PetarP avatar
    754 posts

    Posted 12 Aug 2011 Link to this post

    Hello Andrew,

     Please find the tt templates attached to this thread. Steps you will need to follow to make it working:
    1. Add the template in your project where you would like to generate the metadata classes.
    2. Open the template and on the 11th row replace the path to point to your local version of the Telerik.Common.UI assembly.
    3. On the 12th row replace the version number of the OpenAccess assembly with the one you have locally on your machine.
    4. On the 43th row you will see that there is a path pointing to an rlinq file. Replace this path with one pointing to your rlinq file. This is needed for us to load the metadata container and generate the required code.
    5. On the 42th row Add the class names for which you would like to see metadata generated. Please not that the classes needs to be added in the string array.
    6. Save the template.

    This should be all. 
    Please have in mind that those templates are still in Beta and there is a possibility that there might be some small issues with them(although this is not likely). The template is easily tweakable so if you need any attributes generated automatically please write to us and we will include them. 
    We are looking forward to your reply.

    Kind regards,
    Petar
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Back to Top
DevCraft banner