If you have a table with a compound primary key that is composed of a foreign key and other table columns, how do you get ASP.NET Dynamic Data to allow the non-foreign primary key table columns to be editable?
Sql – Enabling editing of primary key field in ASP.NET Dynamic Data / LINQ to SQL
asp.netdynamic-datalinq-to-sqlnet
Related Topic
- C# – Proper use of the IDisposable interface
- C# – How to update the GUI from another thread
- Asp – New button for Foreign Key fields in Dynamic Data
- C# – JavaScriptSerializer – JSON serialization of enum as string
- C# – Unable to update the EntitySet – because it has a DefiningQuery and no
element exist - Scala: list.flatten: no implicit argument matching parameter type (Any) = > Iterable[Any] was found
- C# – Could not find a part of the path … bin\roslyn\csc.exe
Best Answer
LINQ to SQL does not support changing the primary key of an entity even without using Dynamic Data.