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 8783067
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T20:44:02+00:00 2026-06-13T20:44:02+00:00

In my ASP.NET MVC3 application, I am having users, roles and entities. User Roles

  • 0

In my ASP.NET MVC3 application, I am having users, roles and entities. User Roles will be having access to entities. So while storing users and roles in database which of following is good approach?

  1. To store user list in the entity tables

  2. Entity Ids in the user table.

In future the number of entities may increase to 1000,10000 so I want to consider the performance aspect also.

  • 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-13T20:44:04+00:00Added an answer on June 13, 2026 at 8:44 pm

    I think the relationship between Role and Entity is many- to many. One role can have zero or more entities and one Entity may belongs to zero or more Role. So create a third table to store those with 2 columns, RoleId and EntityID

    Sample data would look like

    ROLE_ID        ENTITY_ID
    -----------------------------------
    1              144
    1              146
    2              194
    4              14
    4              194
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on Asp.net MVC3 web application. I'm having one page on which appx.
I have an ASP.NET MVC3 application that uses entities generated from a database. Each
I am having some trouble with a asp.net MVC3 web application that I am
I am working on an ASP.Net MVC3 application and I'm having trouble understanding the
In ASP.NET MVC3 application, my controllers will work with the set of BL manager
I'm having some problems publishing an asp.net mvc3 application. When deployed, the application fails
I'm having a problem with an ASP.Net MVC3 application I've written. The application consists
I have User-settings page in my ASP.Net MVC3 application. This page contains a lot
I am working on asp.net mvc3 application. In this user can post data, i
I have a asp.net MVC3 Application with two users Admin and General.Cookies is saved

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.