when I have persisten object instance, how can I find it's primary key id? With object scope it was possible with GetObjectId, how can I accomplish this in domain model approach?
thanks,
Robert
2 Answers, 1 is accepted
0
Accepted
Petko_I
Telerik team
answered on 11 Aug 2010, 05:02 PM
Hello Robert,
This functionality together with executing SQL queries directly and subscribing to CUD Tracking events can be accomplished with exposing the protected method GetScope of the generated Entity Diagrams context. To do this, you can inherit from the context class and define a public method whose only purpose is to invoke the protected GetScope.Here is an example.
If you have any further questions, feel free to ask and we will respond in a timely manner.
All the best,
Petko_I
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items