64 lines
1.6 KiB
C#
64 lines
1.6 KiB
C#
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
|
|
{
|
|
// <Auto-Generated>
|
|
// This is here so CodeMaid doesn't reorganize this document
|
|
// </Auto-Generated>
|
|
[Table("ProductTable")]
|
|
public class ProductModel
|
|
{
|
|
/// <summary>
|
|
/// ID su DB
|
|
/// </summary>
|
|
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
public int ProductID { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// Nome Prodotto
|
|
/// </summary>
|
|
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();
|
|
}
|
|
}
|
|
}
|