fluent api and views

2 posts, 0 answers
  1. Kenneth
    Kenneth avatar
    70 posts
    Member since:
    Feb 2008

    Posted 11 Nov 2011 Link to this post

    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?
  2. Serge
    Admin
    Serge avatar
    375 posts

    Posted 16 Nov 2011 Link to this post

    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!

  3. DevCraft banner
Back to Top