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

No metadata has been registered for class

1 Answer 438 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jaime Weise
Top achievements
Rank 1
Jaime Weise asked on 02 Aug 2010, 12:49 AM
I am receiving this error:
No metadata has been registered for class ShortcutAnalyzer.Data.FileType. (This usually indicates, that either this class is not declared persistent or it is declared persistent but not enhanced. The class was loaded from file:///C:/Users/jaime/Documents/Visual Studio 2008/Projects/ADDINS/SHORTCUT ANALYZER/ShortcutAnalyzer.SimpleTester/bin/Debug/ShortcutAnalyzer.Data.DLL.)

First, I started out with a database and used the reverse mapping wizard to generate the classes in a project called ShorcutAnalyzer.Data. Next I referenced that project from a console application. The only code that accesses the generated data classes is in a project called ShortcutAnalyzer.Repository

In short ShortcutAnalyzer.Repository used the ShortcutAnalyzer.Data project to access the database. The ShortcutAnalyzer.Data project also has an ObjectScopeProvider class in it for accessing the database. 

The generated classes don't have the persistent attribute attached to them I guess because they are to be regenerated from the database(ie. Reverse Mapping). At any rate I am stuck with the above error. Any help would be greatly appreciated. I have already used up way more time than it would take to implement this using Entities Framework. I like most of Telerik's software so I thought I would give this a try but I am getting discouraged.

Jaime 

1 Answer, 1 is accepted

Sort by
0
Damyan Bogoev
Telerik team
answered on 05 Aug 2010, 09:29 AM
Hello jaime,

We were unable to reproduce this behavior on our side. Could you please verify that the Persistent attribute is missing for the reverse-mapped classes? If so, this would be a problem on our side.Please note that for each table two partial classes are generated and this attribute is specified on only one of them.

In order to reproduce the wrong behavior we will have to ask you to provide us with some additional information.  
Please check if the classes from the OpenAccess library are enhanced and provide us with the details:
- Load the deployed OpenAccess library;
- Check if the persistent classes within this assembly implement the Telerik.OpenAccess.SPI.dataobjects.PersistenceCapable interface;
Could you please also provide us with the logging information from OpenAccess? Helpful information regarding the logging mechanism can be found in this help article under the Tracing & Logging Settings paragraph.
We are looking forward to your reply.
Best wishes,
Damyan Bogoev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Jaime Weise
Top achievements
Rank 1
Answers by
Damyan Bogoev
Telerik team
Share this question
or