How to set datatable primary key?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

When creating typed datasets, how do you set primary keys? I've used Unique =
true, but looking into the schema definition i see that the
msdata:PrimaryKey="true" is not present. So, how do i actually get the
msdata:PrimaryKey="true" value to pop up in the schema definition using the
dataset designer?
 
In designer right click on the schema, Add->New Key select the field and mark
in as PK (check schema that u have no PK already)

MariusI said:
When creating typed datasets, how do you set primary keys? I've used Unique =
true, but looking into the schema definition i see that the
msdata:PrimaryKey="true" is not present. So, how do i actually get the
msdata:PrimaryKey="true" value to pop up in the schema definition using the
dataset designer?

--
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 
Back
Top