Get the value of the autogenerated ID field

3 posts, 1 answers
  1. Christian
    Christian avatar
    81 posts
    Member since:
    Aug 2008

    Posted 05 Aug 2009 Link to this post

    Hi,
    In my class model, the value of the ID field comes from the database (autogenerated value).
    1.) How can I make this field read-only displayed?
    2.) How do I make that mapping?
    3.) How can I make when visiting subclasses (customer -> orders) the ID field of the orders will be filled automatically?

    For help, I would be grateful.
    Christian







  2. Ady
    Admin
    Ady avatar
    588 posts

    Posted 06 Aug 2009 Link to this post

    Hi Christian,

     I assume you have Reverse mapped your class model. The primary key column and autoinc setting is automatically detected and the appropriate mapping is generated.
    Please also have a look at this KB article that describes how to define a field for the FK constraint alongwith the actual reference.

    Regards,
    Ady
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. DevCraft banner
  4. Answer
    Ady
    Admin
    Ady avatar
    588 posts

    Posted 06 Aug 2009 Link to this post

    Hello Christian,

    Sorry about the link. Here it is.

    Regards,
    Ady
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top