Dynamic data: scaffolding read-only for LINQ classes using views instead of tables?

I am trying to use ASP.NET dynamic data features to create CRUD scaffolds for my data model. My model contains a supertype / subtype relationship, so some booleans are split between two tables, one for general data and one for subtype data.

In the context of LINQ, I expose these objects as a single view-backed class that joins tables. I also created sprocs for insert / update / delete and configured the class behavior to use them.

When I enable scaffolding, it only generates a read-only data view. Add, edit and delete links are not displayed. Why?

0


source to share


1 answer


SOLVED: The problem was that I didn't identify the primary key column in the LINQ classes after dragging the views to the surface. After adding PK, CRUD functions appeared.



+3


source







All Articles