Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8165233
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T19:29:21+00:00 2026-06-06T19:29:21+00:00

I have a problem with a model in a asp.net mvc3 application. First of

  • 0

I have a problem with a model in a asp.net mvc3 application.
First of all, i have a table with items, each item has e.g.: id,name and description
where i also have a user with: id, name

It looks somewhat like:

class item {int id, string name, string description}
class user {int id, string name}

Now i also have a table which maps these two things to each other, with foreign keys.
so each user can have * items and each item also can have * users.

Now i need to create controller and view for the item. this works fine, the problem is, that i just create a item, but i want to create a item and the mapping to a user in one step.

how to solve this problem in mvc? (e.g. i just can add one model in a view and this is the item in the create process)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T19:29:22+00:00Added an answer on June 6, 2026 at 7:29 pm

    Short answer: you need to add drop-down of users while creating an item. This will help to link each item to a user.

    However, your particulate issue seems to be in building many-to-many relationship in the model. How to do this? Well, this is already nicely explained here – ASP.NET MVC, Entity Framework, One-to-Many and Many-to-Many INSERTS

    In addition, I would strongly suggest to go through – NerdDinner Tutorial. It will give you good start-up and solid background for development in asp.net mvc framework.
    You may also refer to Tutorial samples in official website to learn and practice development in mvc.

    Here is a link to complete code of the tutorial – NerdDinner 2.0 Complete ASP.NET MVC Sample App

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have problem in making class diagram for asp.net mvc. since in mvc application
I am using asp.net mvc 2.0(default binding model) and I have this problem. I
I Have a little problem with WebGrid control for Asp.Net MVC3. What I want
I'm learning ASP.NET MVC3 and doing an application with CMS capabilities - but have
i have a problem with my asp.net mvc3 page. i have a view which
I have a little problem with ASP.NET MVC 3 and enum: My Person Model:
I have a problem adding ADO.Net Entity Data Model to my existing project, or
Ive got the following problem. I have a model called user which has a
I got a simple problem in SQLAlchemy. I have one model in a table,
We have a ASP.NET MVC 3 application that uses unobtrusive jQuery validation. The page

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.