1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Integer Primary Keys

Integer Primary Keys

4 posts, 0 answered
  1. John
    John avatar
    14 posts
    Registered:
    29 Jul 2010
    20 Dec 2010
    Link to this post
    Hi,

    I'm noticing that the DataProviderBase has method signatures that include IDataItem.  IDataItem includes a property for Id that is a Guid.

    Our dba's get their panties in a bunch when we talk about guid's as primary keys, even with the newsequentialid functionality.

    Is there any way to use integers as primary keys in 4.0 without totally bypassing the built-in base classes?

    Thanks,

    John.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    20 Dec 2010
    Link to this post
    Hi John,

    You can change the primary keys and expected variables only in a custom implementations.

    Regards,
    Ivan Dimitrov
    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
  3. John
    John avatar
    14 posts
    Registered:
    29 Jul 2010
    20 Dec 2010
    Link to this post
    Hi Ivan,

    I'm continually amazed at the quickness of the customer support that you provide.

    Let me ask one follow up question.

    Does "Custom implementation" mean that we could implement all the nice juicy base classes but ignore the id property on all our model classes?  Or would a Guid.Empty id blow stuff up?  We are not using OpenAccess, but rather entity framework, so I'm not concerned with the provider implementation - but the related stuff like the module, manager, and ui stuff like ViewModeControl<T>, etc.
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    20 Dec 2010
    Link to this post
    Hello John,

    If we are talking to IDataItem, the ID type cannot be changed and there are many dependencies that does not allow you to do this. When I said custom implementation I meant that something that does not use our base classes and does not rely on them.

    Best wishes,
    Ivan Dimitrov
    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
4 posts, 0 answered