Enabling Primary Key Field Editing in ASP.NET Dynamic Data / LINQ to SQL

If you have a table with a composite primary key consisting of a foreign key and other columns of the table, how can you get dynamic ASP.NET data to allow editing the columns of the non-public primary key table?

+3
source share
4 answers

LINQ to SQL does not support changing the primary key of an object even without using dynamic data.

+2
source

. . - . - . Linq SQL Data Entities.

+2

, , . , .

, , pk .

+2
source

The primary key is the identifier of the object. It is assumed that the primary key fields never change. Your question suggests that you may misuse primary keys.

-1
source

Source: https://habr.com/ru/post/1697244/


All Articles