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

fluent api and views

1 Answer 50 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.
Kenneth
Top achievements
Rank 1
Kenneth asked on 11 Nov 2011, 11:00 PM
I had a mixed forward and reverse mapped solution. I upgraded it to a Domain Model using the wizard. It compiles, but get a run time errors like this:

Failed to process base class table of class 'MyTalkObjects.ViewSharedLibrary'.

I can see that in the fluent mapping that there was no difference in the code generation between mapping classes based on tables, and those based on views. It sounds like the runtime is expecting that the view-based classes are expecting that they are backed by tables.

What's the correct the way to connect a view to a class using the fluent api?

1 Answer, 1 is accepted

Sort by
0
Serge
Telerik team
answered on 16 Nov 2011, 03:52 PM
Hi Kenneth,

 Views are treated exactly the same as tables are by Telerik OpenAccess ORM so everything that is applicable for a table using the Fluent API should work for a view as well. Unfortunately I have not been able to reproduce the provided exception. 

Can you please send us a small sample project that we can use for reproducing and debugging the problem. I am looking forward to resolving this matter with you. 

All the best,
Serge
the Telerik team

NEW and UPDATED OpenAccess ORM Resources. Check them out!

Tags
General Discussions
Asked by
Kenneth
Top achievements
Rank 1
Answers by
Serge
Telerik team
Share this question
or