नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
Use the LINQ to SQL IsPrimaryKey property on the ColumnAttribute attribute to designate a property or field to represent the primary key for a database column.
For code examples, see IsPrimaryKey.
Note
LINQ to SQL does not support computed columns as primary keys.
To designate a property or field as a primary key
Add the IsPrimaryKey property to the ColumnAttribute attribute.
Specify the value as
true.