This is a migrated thread and some comments may be shown as answers.

Q2 Version and Error

6 Answers 53 Views
Getting Started
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Andrew
Top achievements
Rank 1
Andrew asked on 19 Jul 2011, 05:59 PM

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.

6 Answers, 1 is accepted

Sort by
0
PetarP
Telerik team
answered on 25 Jul 2011, 02:49 PM
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!

0
Andrew
Top achievements
Rank 1
answered on 25 Jul 2011, 05:12 PM
Yes, please send it to me.

Thank you.
0
PetarP
Telerik team
answered on 28 Jul 2011, 03:51 PM
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!

0
Andrew
Top achievements
Rank 1
answered on 09 Aug 2011, 01:04 PM
Any news on this?
0
PetarP
Telerik team
answered on 12 Aug 2011, 12:43 PM
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 >>

0
PetarP
Telerik team
answered on 12 Aug 2011, 04:18 PM
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 >>

Tags
Getting Started
Asked by
Andrew
Top achievements
Rank 1
Answers by
PetarP
Telerik team
Andrew
Top achievements
Rank 1
Share this question
or