34 lines
950 B
C#
34 lines
950 B
C#
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using CMS_CORE_Library.Models;
|
|
|
|
namespace Thermo.Active.Model.DatabaseModels
|
|
{
|
|
[Table("magazine_position")]
|
|
public class DbNcMagazinePositionModel
|
|
{
|
|
[Key, Column("magazine_id", Order = 0)]
|
|
public byte MagazineId { get; set; }
|
|
|
|
[Key, Column("position_id", Order = 1)]
|
|
public int PositionId { get; set; }
|
|
|
|
[Column("type")]
|
|
public byte Type { get; set; }
|
|
|
|
[Column("disabled")]
|
|
public bool Disabled { get; set; }
|
|
|
|
public static explicit operator NcMagazinePositionModel(DbNcMagazinePositionModel obj)
|
|
{
|
|
return new NcMagazinePositionModel()
|
|
{
|
|
MagazineId = obj.MagazineId,
|
|
PositionId = (ushort)obj.PositionId,
|
|
Type = obj.Type
|
|
};
|
|
}
|
|
}
|
|
}
|