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

  • Home
  • SEARCH
  • 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 9056925
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T14:19:22+00:00 2026-06-16T14:19:22+00:00

I have two database tables for multilinguality in my project: Word -ID- -En- -Ge-

  • 0

I have two database tables for multilinguality in my project:

Word -ID-      -En-          -Ge-
       1       Hello         Hallo
       2       Yes            Ja

Lang -ID-   -Name-  -FlagFileName- 
       1   English    flag-en.jpg
       2   Deutsch    flag-ge.jpg

But, I need to be able to add new languages into the system. I can add a new row to Lang table and a new column to Word table, but I cannot update the DBContext object in my ASP.NET MVC3 project. My DB Objects in my Model.

public class Word
{
    public int ID { get; set; }
    public string English { get; set; }
    public string Deutsch { get; set; }
}
public class Language
{
    public int ID { get; set; }
    public string Name { get; set; }
    public string ImageFileName { get; set; }
}

I need a way to define Word as new languages can be added to it. How can I update the Word object? Is this even doable in some way?

I also have problems dealing with dynamic Views:

@{
    Type objectType = Type.GetType(typeof(MyProjectNamespace.Models.Word).AssemblyQualifiedName);
    System.Reflection.PropertyInfo[] fields = objectType.GetProperties();
}

<table>
@foreach (System.Reflection.PropertyInfo f in fields)
{ 
    <th> @f.Name.ToString() </th>
}
@foreach (var item in Model) {
<tr>
    @foreach (System.Reflection.PropertyInfo f in fields)
    { 
      <td>@Html.DisplayFor(modelItem => item.English)</td>
      <td>@Html.DisplayFor(modelItem => item.Deutsch)</td>
      <td>//How can I display for a new Language here?</td>
    }
</tr>
}
</table>

I can get every attribute of Word and print out them as Headers with the code below, but how can I print the values in these dynamic attributes? Is this doable?

I appreciate any ideas, I am even ready to recreate tables.

  • 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-16T14:19:23+00:00Added an answer on June 16, 2026 at 2:19 pm

    I decided to go simple. It’s maybe doable, but not worth it, to deal with dynamic Model objects and get their dynamic attributes. So I decided I need a Word table like:

    Lang -ID-   -Name-  -FlagFileName- 
           1   English    flag-en.jpg
           2   Deutsch    flag-ge.jpg
    
    Word -ID-    -Text-     -LanguageID-
           1     Hallo          2
           2     Hello          1
           3      Yes           1
           4      Ja            2
    

    As the Words won’t be standing in a mathematical index as new languages are added such as:

      --indexed--                    --index broken--
     1-English Word                 1-English Word
     2-German Word                  2-German Word
     3-English Word                 3-Spanish Word
     4-German Word                  4-Dutch Word
    

    And the computers cannot understand the meaning of a word with %100 reliability, I decided to hold a Meaning table, which only holds English words:

    Meaning -ID-   -Text-
              1    Hello
              2    Yes
    

    And bind the meanings with actual Words:

    Word -ID-    -Text-     -LanguageID-  -MeaningID-
           1     Hallo          2              1
           2     Hello          1              1
           3      Yes           1              2
           4      Ja            2              2
    

    I was assigning WordID’s to new dynamic elements, such as “a new type”, which will be used to fill a dropdown box somewhere. Now I’ll bind it to a MeaningID.

    This solution is clear, understandable and easily-implementable, I guess. I won’t accept my own answer for a week, in case some clear solutions might be presented to my current tables.

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

Sidebar

Related Questions

I have two database tables, Team ( ID, NAME, CITY, BOSS, TOTALPLAYER ) and
I have two database tables Contact (Id, Name, ...) and ContactOperationalPlaces (ContactId, MunicipalityId), where
I have these two database tables: locations id name users id location_id last_name first_name
I have two database tables, 1st is the TABLE_GLOBAL_PRODUCTS where all products information are
I have two database tables with the following structure: actions: action_id int(11) primary key
I have a database two tables and a linking table that I need a
I have two tables in my database schema that represent an entity having a
I have two tables in my database. Comments CommentsID MembersID CommentsBy CommentsDesc CommentsActive CommentsDateEntered
I have two tables in my database: user and media_contact . The media_contact table
I have two tables in my database that look like that: Customer: C_ID city

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.