Help the documentation team understand which areas of ASP.NET and Tooling need better help topics

Complex forms

I have a table with columns that are foreign keys to another table. There are multiple columns with links to the same foreign key table. I want to see an example view in which on create and edit I create new rows in the foreign key table and associate them on the same page with a new created record in the table with multiple columns referencing through foreign key constraint to the one table.

Example.

MarriageForm:
HusbandID
WifeID
DataOfMarriage
ChurchName
ChurchAddress
PastorID

Person:
PersonID
FullName
Address

Now I want a single form in a view that creates records 3 records on the same page for Husband, Wife and Pastor records in the person table and also for DateOfMarriage, Church, ChurchAddress all fields on a single form page view.

I am working on trying to make such a view with controller the models and the model first database already exist and are correctly created.

This would be very helpful if you can provide an example that works.

5 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Akshay SrinivasanAkshay Srinivasan shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    1 comment

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base