using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Liman.CadCam.DbModel { // // This is here so CodeMaid doesn't reorganize this document // [Table("ProductTable")] public class ProductModel { /// /// ID su DB /// [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int ProductID { get; set; } = 0; /// /// Nome Prodotto /// public string ProductName { get; set; } = ""; public int ProductNumber { get; set; } = 0; public int ProductOption1 { get; set; } = 0; public int ProductOption2 { get; set; } = 0; public override bool Equals(object? obj) { if (obj == null) return false; if (!(obj is ProductModel item)) return false; if (ProductID != item.ProductID) return false; if (ProductName != item.ProductName) return false; if (ProductNumber != item.ProductNumber) return false; if (ProductOption1 != item.ProductOption1) return false; if (ProductOption2 != item.ProductOption2) return false; return true; } public override int GetHashCode() { return base.GetHashCode(); } } }