'Create link many table to one table

I want to implement translation into different languages of some data from different tables. Conditionally I have a menu table and a description table, I create two tables 1 with locale:

public class Language : BaseEntity, IAggregateRoot
{
    public string Name { get; set; }
    public string Culture { get; set; }
}

And actually with translations

public class LanguageResource : BaseEntity, IAggregateRoot
{
   public Guid ParentUid { get; set; }
   public virtual Language Language { get; set; }
   public string Name { get; set; }
   public string Value { get; set; }
}

Where ParentUid is the Uid in the Menu that I would like to map to this table and get the data.

public class Menu : BaseEntity, IAggregateRoot
{
    public Guid Uid { get; set; }
    public IEnumerable<LanguageResource> languageResources { get; set; }
    public string Name { get; set; }
    public int? Priority { get; set; }
}

But also in ParentUid, I would like to put the Uid of another table, so as not to create a million tables with translations for each.

Can you tell me how this can be further implemented? I can't properly set up a table link through CodeFirst



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source