2019-06-17 03:50:32 +01:00
|
|
|
using System;
|
2019-06-17 04:10:14 +01:00
|
|
|
using System.Collections.Generic;
|
2019-06-17 03:50:32 +01:00
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
|
|
|
|
namespace Cicm.Database.Models
|
|
|
|
|
{
|
|
|
|
|
public class MagazineIssue : BaseModel<long>
|
|
|
|
|
{
|
|
|
|
|
[Required]
|
|
|
|
|
public long MagazineId { get; set; }
|
|
|
|
|
[Required]
|
|
|
|
|
public string Caption { get; set; }
|
|
|
|
|
public string NativeCaption { get; set; }
|
|
|
|
|
[DisplayFormat(DataFormatString = "{0:d}")]
|
|
|
|
|
[DataType(DataType.Date)]
|
|
|
|
|
public DateTime? Published { get; set; }
|
|
|
|
|
[StringLength(18)]
|
|
|
|
|
public string ProductCode { get; set; }
|
|
|
|
|
public short Pages { get; set; }
|
|
|
|
|
|
2019-06-17 04:22:37 +01:00
|
|
|
public virtual Magazine Magazine { get; set; }
|
|
|
|
|
public virtual ICollection<PeopleByMagazine> People { get; set; }
|
|
|
|
|
public virtual ICollection<MagazinesByMachine> Machines { get; set; }
|
|
|
|
|
public virtual ICollection<MagazinesByMachineFamily> MachineFamilies { get; set; }
|
2019-06-17 03:50:32 +01:00
|
|
|
}
|
|
|
|
|
}
|