Foreign Key No choice in DropDown

0

Good afternoon!

I am implementing a small application like Code First and I have a situation where I need to create a new record in a table, using the primary key of another table. By default, when I generate the controller and views automatically, the create view instead of asking for a Foreign Key as a parameter prompts me to choose it in a DropDown (combobox) and that form is not stick to the application.

Example of how you would like it to work:

1 -) Screen 1 (client); 2 -) Click the button to Register new Phone; 3 -) Loads the phone registration screen with the Client ID; 4 -) Clicking Save saves the record with the Customer Id + Phone Attributes.

    
asked by anonymous 10.10.2018 / 22:42

0 answers