I have created an Dynamic data site with ASP.NET, c# and EF(Model first Approach) in which i was unable to see the primary key column in dynamic data site ,then i used
[ScaffoldColumn(true)]
public string Course_Id { get; set; }
now the column is visible but i could not enter values in that column in input page i.e., insert.aspx , it is now become readonly column, i can't even see the textbox beside that column to enter anything. How can i get over this, is it possible to enter
values for that column kindly help.
Member
1 Points
13 Posts
Problem with primary key column in dynamic data site(Asp.net c#,Dynamic Data, Entity Framework)
Aug 16, 2013 11:08 AM|naikotiarun|LINK
Hi
I have created an Dynamic data site with ASP.NET, c# and EF(Model first Approach) in which i was unable to see the primary key column in dynamic data site ,then i used
[ScaffoldColumn(true)]
public string Course_Id { get; set; }
now the column is visible but i could not enter values in that column in input page i.e., insert.aspx , it is now become readonly column, i can't even see the textbox beside that column to enter anything. How can i get over this, is it possible to enter values for that column kindly help.
Thanks in Advance
All-Star
17916 Points
5681 Posts
MVP
Re: Problem with primary key column in dynamic data site(Asp.net c#,Dynamic Data, Entity Framewor...
Aug 16, 2013 11:15 AM|sjnaughton|LINK
You will certanly not be able to edit this column even if it is not DB genrated but it should be editable in insert mode in not DB generated.
Always seeking an elegant solution.