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

ОтвеченоForeign key and relationship in SSDS

  • 7 июня 2008 г. 8:51c.c.chai Медали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     
    Is there a foreign key / relationship concept in SSDS?

    For Foreign Key part, I can simply store the parent Entity Id in the records. But it makes me wonder how to manage cascade update / cascade delete? Are the features supported in SSDS, or I have to manage them myself?

    One way to avoid cascade update is to assign a unique Id to entity which cannot be changed once inserted, e.g. Identity column in SQL Server 2005, or use GUID. This leads to another question, does SSDS support Identity / auto-numbering / GUID-generation as in SQL Server 2005? Or I have to assign my own GUID from client side?

Ответы

Все ответы