Files
mixtape/zero.Core/Entities/Language.cs
T

43 lines
1020 B
C#
Raw Normal View History

using zero.Core.Attributes;
namespace zero.Core.Entities
2020-05-04 16:00:39 +02:00
{
2020-05-24 18:32:47 +02:00
public class Language : ZeroEntity, ILanguage
{
/// <inheritdoc />
public string Code { get; set; }
/// <inheritdoc />
public bool IsDefault { get; set; }
2020-07-20 12:02:02 +02:00
/// <inheritdoc />
public bool IsOptional { get; set; }
2020-05-24 18:32:47 +02:00
/// <inheritdoc />
2020-10-12 13:14:23 +02:00
public string InheritedLanguageId { get; set; }
2020-05-24 18:32:47 +02:00
}
[Collection("Languages")]
2020-11-14 12:34:26 +01:00
public interface ILanguage : IZeroEntity, IZeroDbConventions
2020-05-04 16:00:39 +02:00
{
/// <summary>
/// Language code (ISO 3166-1)
/// </summary>
2020-05-24 18:32:47 +02:00
string Code { get; set; }
2020-05-04 16:00:39 +02:00
/// <summary>
/// Whether this is the default language
/// </summary>
2020-05-24 18:32:47 +02:00
bool IsDefault { get; set; }
2020-05-04 16:00:39 +02:00
2020-07-20 12:02:02 +02:00
/// <summary>
/// Whether this language is optional and does not have to be filled out
/// </summary>
bool IsOptional { get; set; }
2020-05-04 16:00:39 +02:00
/// <summary>
/// If this language is inherited it gets all missing properties from its parent
/// </summary>
2020-10-12 13:14:23 +02:00
string InheritedLanguageId { get; set; }
2020-05-04 16:00:39 +02:00
}
}