Get db object type in runtime

Thread is closed for posting
2 posts, 0 answers
  1. Carsten
    Carsten avatar
    4 posts
    Member since:
    Feb 2009

    Posted 22 Dec 2010 Link to this post


    is there a possibility in runtime to get information about if a mapping is for a table or for a view. E.g. I have persistent type "MyClass" and want to find out if this type is mapped to a table or to a view.
    I looked into the MetaDataContainer but didn't find anything appropriate.

  2. Jan Blessenohl
    Jan Blessenohl avatar
    707 posts

    Posted 22 Dec 2010 Link to this post

    Hi Carsten,
    At the moment we do not store this information because the handling of views and tables are completely the same. A way for you to find it out is to use the backend specific schema read functions and execute them via our direct sql api.

    Jan Blessenohl
    the Telerik team
    Accelerate your learning with industry's first Telerik OpenAccess ORM SDK. Download today.
Back to Top