Задайте вопросЗадайте вопрос
 

ОтвеченоHow are you populating your Entity ID fields?

  • 3 июля 2008 г. 19:57David Schultz Медали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     
    Just curious as to how people here are coming up with IDs for entities. 

    For example, if you're storing contacts as separate Entities within a Container, what do you use? 

     - If I use any personal info about the contact, it may change or may be a typo and the ID field cannot be changed, so I wouldn't want to lock that typo in place. 

     - If I use an integer based ID, how would I know what the next ID is if an ID is already in use? I assume I would have to query the service.  Seems rather inefficient.

     - Then there are GUIDs... are there inefficiencies for using a GUID for the ID field, or other reasons I might want to consider something else?

    Thanks,
    David

Ответы

Все ответы