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

Get db object type in runtime

1 Answer 41 Views
Development (API, general questions)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Carsten
Top achievements
Rank 1
Carsten asked on 22 Dec 2010, 01:51 PM
Hi,

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.

Thanks
Milen

1 Answer, 1 is accepted

Sort by
0
Jan Blessenohl
Telerik team
answered on 22 Dec 2010, 02:03 PM
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.

Greetings,
Jan Blessenohl
the Telerik team
Accelerate your learning with industry's first Telerik OpenAccess ORM SDK. Download today.
Tags
Development (API, general questions)
Asked by
Carsten
Top achievements
Rank 1
Answers by
Jan Blessenohl
Telerik team
Share this question
or