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

[Solved] Reversed Mapping (Views): No primary key fields found for class

1 Answer 153 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.
James
Top achievements
Rank 2
James asked on 15 Sep 2010, 03:56 AM
Hello,

I just tried reversing mapping an existing database including both tables and views. I selected 'views' when reversing mapping the database.

I got many errors, each error showing:
Open Access: No primary key fields found for class 'ProjectName.View' with identity-type application and no persistence capable base class.


Can I configure OpenAccess to ignore these errors? Any suggestion will be appreciated much.

Regards,
James

1 Answer, 1 is accepted

Sort by
0
Damyan Bogoev
Telerik team
answered on 15 Sep 2010, 05:18 PM
Hello James,

I am afraid that there is no way to disable the errors when primary keys are not specified.
The correct approach would be to specify primary key(s) for each view using the Reverse Mapping wizard. I suggest you to read this blog post which demonstrates how to reverse map database views.
Hope that helps.

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
James
Top achievements
Rank 2
Answers by
Damyan Bogoev
Telerik team
Share this question
or