You can obtain full information regarding the identity members of a persistent type by using out Metadata
API. As far as we understand you have used something similar to this method to obtain the identity members by having the Clr
type of an entity:
This method is expected to be included as an extension in the partial class definition of the OpenAccessContext
derived type. The advantage here is that you can use the static method GetIdentityMembers
() in our MetadataWorker
helper class. The class provides useful methods for working with our Metadata
We are, however, a bit confused as to why you would like to check the type of the value you provide in the method GetSingle()
. The value provided in the arguments list is Integer (Int32) by definition. You have mentioned in one of your previous posts that you are having issues with a big integer. Can you elaborate more on that matter? The ObjectKeyMember
real value as you have correctly noticed is not available when you create a new ObjectKey
instance. However, if you just need to evaluate the types of the identity fields you can do so with reflection without knowing the names of the properties behind the identity values. Yet, details concerning the identity members can be obtained with the Metadata
API as shown in the example above.
We are looking forward to resolving the issue.
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?
Telerik Public Issue Tracking
system and vote to affect the priority of the items