Pibd-22_Presnyakova.V.V_Jew.../JewelryStoreDatabaseImplement/Models/JewelComponent.cs

34 lines
692 B
C#
Raw Normal View History

2023-03-05 18:39:34 +04:00
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
2023-05-02 14:50:43 +04:00
using System.Runtime.Serialization;
2023-03-05 18:39:34 +04:00
using System.Text;
using System.Threading.Tasks;
namespace JewelryStoreDatabaseImplement.Models
{
2023-05-02 14:50:43 +04:00
[DataContract]
public class JewelComponent
2023-03-05 18:39:34 +04:00
{
2023-05-02 14:50:43 +04:00
[DataMember]
public int Id { get; set; }
2023-03-05 18:39:34 +04:00
[Required]
2023-05-02 14:50:43 +04:00
[DataMember]
public int JewelId { get; set; }
2023-03-05 18:39:34 +04:00
[Required]
2023-05-02 14:50:43 +04:00
[DataMember]
public int ComponentId { get; set; }
2023-03-05 18:39:34 +04:00
[Required]
2023-05-02 14:50:43 +04:00
[DataMember]
public int Count { get; set; }
2023-03-05 18:39:34 +04:00
public virtual Component Component { get; set; } = new();
public virtual Jewel Jewel { get; set; } = new();
}
}