using System.ComponentModel.DataAnnotations.Schema;
namespace Oqtane.Models
{
///
/// Language Information for s
/// TODO: todoc - unclear how this is different from
///
public class Language : ModelBase
{
///
/// Internal ID
///
public int LanguageId { get; set; }
///
/// Reference to a
/// TODO: todoc - unclear why it's nullable
///
public int? SiteId { get; set; }
///
/// Language / Culture code, like 'en-US' - corresponds to
///
public string Code { get; set; }
///
/// Is this the default language on a
///
public bool IsDefault { get; set; }
///
/// Language Name - corresponds to , _not_
/// Note that this property still exists in the database because columns cannot be dropped in SQLite
/// Therefore the property must be retained/mapped even though the framework populates it from the Culture API
///
public string Name { get; set; }
[NotMapped]
///
/// Version of the satellite assembly
///
public string Version { get; set; }
public Language Clone()
{
return new Language
{
LanguageId = LanguageId,
SiteId = SiteId,
Name = Name,
Code = Code,
IsDefault = IsDefault,
Version = Version
};
}
}
}