Last active
September 29, 2018 11:42
-
-
Save mehmetalierol/c0977831ee208cb57cacfb609d120b1e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Company.Application.Common.Data; | |
using System; | |
using System.ComponentModel.DataAnnotations; | |
namespace Company.Application.Data.Entities | |
{ | |
/// <summary> | |
/// Çoklu dil alt yapısına sahip projemizin sözlüğü görevini görecek olan sınıfımız. | |
/// Kelimelerin hangi diller ne anlama geldiği bu sınıf üzerinde tutulacak | |
/// </summary> | |
public class AppResource : EntityBase | |
{ | |
/// <summary> | |
/// Key propertysi her kelime için tanımlanacak bir referans ismi tutacak | |
/// </summary> | |
[Required(ErrorMessage = "Key is required")] | |
public string Key { get; set; } | |
/// <summary> | |
/// LangId bu kelimenin hangi dil için kayıt edildiğini tutacak | |
/// </summary> | |
public Guid LanguageId { get; set; } | |
/// <summary> | |
/// Dile ait detaylar | |
/// </summary> | |
public virtual Language Language { get; set; } | |
/// <summary> | |
/// Value ise verilen key in belirlenen dil için çevirisini tutacak | |
/// </summary> | |
[Required(ErrorMessage = "Value is required")] | |
public string Value { get; set; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment