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

Get the value of the autogenerated ID field

2 Answers 77 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.
Christian
Top achievements
Rank 1
Christian asked on 05 Aug 2009, 06:31 AM
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 Answers, 1 is accepted

Sort by
0
Ady
Telerik team
answered on 06 Aug 2009, 03:29 PM
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.
0
Accepted
Ady
Telerik team
answered on 06 Aug 2009, 03:31 PM
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.
Tags
Development (API, general questions)
Asked by
Christian
Top achievements
Rank 1
Answers by
Ady
Telerik team
Share this question
or