mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Add document base model.
This commit is contained in:
18
Cicm.Database/Models/DocumentBase.cs
Normal file
18
Cicm.Database/Models/DocumentBase.cs
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
using System;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
|
||||||
|
namespace Cicm.Database.Models
|
||||||
|
{
|
||||||
|
public abstract class DocumentBase : BaseModel<long>
|
||||||
|
{
|
||||||
|
[Required]
|
||||||
|
public string Title { get; set; }
|
||||||
|
public string NativeTitle { get; set; }
|
||||||
|
[DisplayFormat(DataFormatString = "{0:d}")]
|
||||||
|
[DataType(DataType.Date)]
|
||||||
|
public DateTime? Published { get; set; }
|
||||||
|
public short? CountryId { get; set; }
|
||||||
|
[MaxLength(262144, ErrorMessage = "Synopsis is too long")]
|
||||||
|
public string Synopsis { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user