| | 1 | | using System.ComponentModel.DataAnnotations.Schema; |
| | 2 | |
|
| | 3 | | namespace MUNity.Database.General; |
| | 4 | |
|
| | 5 | | public class CountryNameTranslation |
| | 6 | | { |
| | 7 | |
|
| 413 | 8 | | public CountryNameTranslation(Country country, string languageCode, string translation, string translatedFullName = |
| 413 | 9 | | { |
| 413 | 10 | | this.Country = country; |
| 413 | 11 | | this.LanguageCode = languageCode; |
| 413 | 12 | | this.TranslatedName = translation; |
| 413 | 13 | | this.TranslatedFullName = translatedFullName ?? translation; |
| 413 | 14 | | } |
| | 15 | |
|
| 0 | 16 | | public CountryNameTranslation() |
| 0 | 17 | | { |
| | 18 | |
|
| 0 | 19 | | } |
| | 20 | |
|
| 0 | 21 | | public short CountryId { get; set; } |
| | 22 | |
|
| 414 | 23 | | public string LanguageCode { get; set; } |
| | 24 | |
|
| | 25 | | [ForeignKey(nameof(CountryId))] |
| 414 | 26 | | public Country Country { get; set; } |
| | 27 | |
|
| 414 | 28 | | public string TranslatedName { get; set; } |
| | 29 | |
|
| 414 | 30 | | public string TranslatedFullName { get; set; } |
| | 31 | | } |