Answer the question
In order to leave comments, you need to log in
What is better, one large table or many identical and small ones?
There is a table "Land_plots" with columns
{ID, Permitted_UseId, Land_CategoryId, Presence_of_PlumbingId}
{id, text}And they themselves are just a list of options to fill out.
{ID, Text, TypeId}
{id,text}
(Text = {"Permitted use", "Land_category","Plumbing_availability"})Relationships: One row from the "TypeText" table has a relationship with several rows in the "Directory" table.
Answer the question
In order to leave comments, you need to log in
The correct option would be "many small tables".
It will allow you to link these small tables with the main one using foreign keys, which will ensure consistency.
In the case of a dump, a "great dictionary", the programmer will have to make sure that the categories are not confused.
Sergey
As a result found two methods to use your variant (through Enum).
1) Via attribute
[Description("bla bla")]Reading attribute: https://dotnetfiddle.net/2qmx9w thanks Sergey
[Display(Name = "Blabla")]"Reading the attribute: https://dotnetfiddle.net/M9G4bT (essentially the same)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question