You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
867 B
29 lines
867 B
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
|
|
{
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
public long Id { get; set; }
|
|
|
|
[ForeignKey(nameof(WordsId))]
|
|
public string WordsId { get; set; }
|
|
public ICollection<VocabularyEntity> TransVoc { get; set; } = new List<VocabularyEntity>();
|
|
|
|
[ForeignKey(nameof(VocabularyListVocId))]
|
|
public long VocabularyListVocId { get; set; }
|
|
public VocabularyListEntity? VocabularyListVoc { get; set; } = null!;
|
|
|
|
public string toString()
|
|
{
|
|
return "Id : " + Id +" wordId : " + WordsId + " VocabularyListVocId : " + VocabularyListVocId ;
|
|
}
|
|
}
|
|
}
|