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

Oracle: generated persistent types have all properties of "Object" type

1 Answer 51 Views
Databases and Data Types
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Nestor Soriano Vilchez
Top achievements
Rank 1
Nestor Soriano Vilchez asked on 23 Dec 2010, 01:48 PM
I am following the "Getting Started with Model First Scenario" tutorial that is part of the OA documentation (http://www.telerik.com/help/openaccess-orm/getting-started-root-getting-started-with-update-schema-tools.html), being the only difference that I am targetting an Oracle database instead of a SQL Server database.

After I create the Students table and map it to a persistent type, I find that the type of all the properties of the generated type is "Object", insetad of being Id an Int32 and Name a String (I skip IsActive since Oracle does not have boolean types).

So, is this a bug or am I doing something wrong?

Thank you.

1 Answer, 1 is accepted

Sort by
0
Accepted
Serge
Telerik team
answered on 28 Dec 2010, 10:27 AM
Hi Nestor Soriano Vilchez,

 There seems to be an issue with these particular types. As you might know varchar is a type the oracle community have declared as deprecated and they strongly suggest using varchar2. Can you please try using number for Id and Varchar2 for the Name

Also if you face similar problems in the future you can always select the property and modify its type to the one you need. Just select it in the diagram, press F4 and look for the Type setting in the property pane.

I am sorry for the inconvenience caused and please do not hesitate to contact us if you face further trouble.

Regards,
Serge
the Telerik team
Accelerate your learning with industry's first Telerik OpenAccess ORM SDK. Download today.
Tags
Databases and Data Types
Asked by
Nestor Soriano Vilchez
Top achievements
Rank 1
Answers by
Serge
Telerik team
Share this question
or