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

2 posts, 1 answers
  1. Nestor Soriano Vilchez
    Nestor Soriano Vilchez avatar
    8 posts
    Member since:
    Dec 2009

    Posted 23 Dec 2010 Link to this post

    I am following the "Getting Started with Model First Scenario" tutorial that is part of the OA documentation (, 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.
  2. Answer
    Serge avatar
    375 posts

    Posted 28 Dec 2010 Link to this post

    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.

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