using System.ComponentModel.DataAnnotations; using System.Runtime.Serialization; namespace FishFactoryDatabaseImplement.Models { [DataContract] public class CannedComponent { [DataMember] public int Id { get; set; } [DataMember] [Required] public int CannedId { get; set; } [DataMember] [Required] public int ComponentId { get; set; } [DataMember] [Required] public int Count { get; set; } public virtual Component Component { get; set; } = new(); public virtual Canned Canned { get; set; } = new(); } }