using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Entities { public class TranslateEntity { public int Id { get; set; } [ForeignKey(nameof(WordsId))] public string WordsId { get; set; } public ICollection Words { get; set; } = new List(); // [ForeignKey(nameof(SecondWordId))] // public string? SecondWordId { get; set; } // public VocabularyEntity SecondWord { get; set; } = null!; [ForeignKey(nameof(VocabularyListVocId))] public long VocabularyListVocId { get; set; } public VocabularyListEntity VocabularyListVoc { get; set; } = null!; } }