PIbd-22_Isaeva_A.I._FishFac.../FishFactoryDatabaseImplement/Models/CannedComponent.cs

23 lines
573 B
C#
Raw Normal View History

2024-03-17 21:00:26 +04:00
using System.ComponentModel.DataAnnotations;
2024-06-19 13:54:56 +04:00
using System.Runtime.Serialization;
2024-03-17 21:00:26 +04:00
namespace FishFactoryDatabaseImplement.Models
{
2024-06-19 13:54:56 +04:00
[DataContract]
public class CannedComponent
2024-03-17 21:00:26 +04:00
{
2024-06-19 13:54:56 +04:00
[DataMember]
public int Id { get; set; }
[DataMember]
[Required]
2024-03-17 21:00:26 +04:00
public int CannedId { get; set; }
2024-06-19 13:54:56 +04:00
[DataMember]
[Required]
2024-03-17 21:00:26 +04:00
public int ComponentId { get; set; }
2024-06-19 13:54:56 +04:00
[DataMember]
[Required]
2024-03-17 21:00:26 +04:00
public int Count { get; set; }
public virtual Component Component { get; set; } = new();
public virtual Canned Canned { get; set; } = new();
}
}