Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mehmetalierol/c0977831ee208cb57cacfb609d120b1e to your computer and use it in GitHub Desktop.
Save mehmetalierol/c0977831ee208cb57cacfb609d120b1e to your computer and use it in GitHub Desktop.
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