Files
marechai/Marechai.Database/Models/MagazineIssue.cs

50 lines
2.2 KiB
C#
Raw Normal View History

2020-06-01 02:12:50 +01:00
/******************************************************************************
// MARECHAI: Master repository of computing history artifacts information
// ----------------------------------------------------------------------------
//
// Author(s) : Natalia Portillo <claunia@claunia.com>
//
// --[ License ] --------------------------------------------------------------
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2020 Natalia Portillo
*******************************************************************************/
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;
2020-02-10 02:10:18 +00:00
namespace Marechai.Database.Models
2019-06-17 03:50:32 +01:00
{
public class MagazineIssue : BaseModel<long>
{
[Required]
public long MagazineId { get; set; }
[Required]
public string Caption { get; set; }
public string NativeCaption { get; set; }
2020-02-10 22:44:18 +00:00
[DisplayFormat(DataFormatString = "{0:d}"), DataType(DataType.Date)]
2019-06-17 03:50:32 +01:00
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
}
}