18 lines
580 B
C#
18 lines
580 B
C#
namespace Modules.Library.Domain.EntitiesV0.Language;
|
|
|
|
public class Language : Entity
|
|
{
|
|
[Required]
|
|
public string CodeIso2 { get; private set; } = default!;
|
|
[Required]
|
|
public string Name { get; private set; } = default!;
|
|
public Guid? IconId { get; private set; }
|
|
|
|
private Language() { }
|
|
|
|
internal static Language New(string codeIso2, string name, Guid? iconId) =>
|
|
new() { CodeIso2 = codeIso2, Name = name, IconId = iconId };
|
|
|
|
internal void SetName(string name) => Name = name;
|
|
internal void SetIcon(Guid? iconId) => IconId = iconId;
|
|
} |