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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T11:40:01+00:00 2026-06-03T11:40:01+00:00

I have an entity that has so many properties and the customer wants to

  • 0

I have an entity that has so many properties and the customer wants to add more later and may delete some too
he may add or delete whenever he want

So I did this
what I did

but now when I need to add or delete I need to change 3 tables and add constraints

  • I know it’s not a good solution but don’t know what to do else

How would you solve this?

  • note:

  • attribute are more than 40 and may be ether numeric or strings

  • I may not delete attributes so often

Edit: something I forgot to mention about attributeValues is I need to select on of the old values that already inserted or add new

  • 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-03T11:40:02+00:00Added an answer on June 3, 2026 at 11:40 am

    now when i need to add or delete i need to change 3 tables and add constraints

    Yep. That’s one of the pitfalls of Entity Attribute Value designs. Actually; that’s one of the smaller pitfalls; wait until you have to write some reports or run a complex query.

    But, if that’s what the customer wants…

    Generally, EAV designs are only appropriate when the number of possible attribute values is large, but the number of actual values is small. The canonical example is medical patient records, where the number of possible symptoms that a patient might have is very large, but the number of actual symptoms is probably comparatively small.

    Note that the leftmost table in your design is wrong; instead of fields like attribute1, attribute2, there should be a linking table in between your leftmost and center tables, creating a many-to-many relationship.

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

Sidebar

Related Questions

I have an entity that has so many properties that I don't want to
I have an entity Company that has many Orders. I mapped these as following
Imagine you have an entity that has some relations with other entities and you
I have two entity that has an one-to-many relationship, I´m trying to select the
I have an entity that has a few relations. I need to clone this
I have an entity that has a collection in it. The collection is a
Let's say we have an entity that has attributes att1 and att2, where att1
A have a JPA entity that has timestamp field and is distinguished by a
I have an entity class that has 10 fields. I am using MS Validation
I have an entity (Org) in my Entity Framework that has a foreign key

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.