locked
Problem with primary key column in dynamic data site(Asp.net c#,Dynamic Data, Entity Framework) RRS feed

  • Question

  • User1160430963 posted

    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

    Friday, August 16, 2013 11:08 AM

Answers

  • User-330204900 posted

    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.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, August 16, 2013 11:15 AM