63 lines
1.6 KiB
C#
63 lines
1.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using MagMan.Data.Tenant.Services;
|
|
|
|
namespace MagMan.Data.Tenant.DbModels
|
|
{
|
|
// <Auto-Generated>
|
|
// This is here so CodeMaid doesn't reorganize this document
|
|
// </Auto-Generated>
|
|
[Table("AliasList")]
|
|
public class AliasModel
|
|
{
|
|
/// <summary>
|
|
/// Famiglia di sinonimi
|
|
/// </summary>
|
|
public string Family { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Codice originale (da trasformare)
|
|
/// </summary>
|
|
public string ValueOriginal { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Codice Alias in cui viene convertito
|
|
/// </summary>
|
|
public string ValueAlias { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Indica se il record sia attivo/valido (per cancellazione logica online e fisica in remoto)
|
|
/// </summary>
|
|
public bool IsActive { get; set; } = true;
|
|
|
|
public override bool Equals(object? obj)
|
|
{
|
|
if (obj == null)
|
|
return false;
|
|
if (!(obj is AliasModel item))
|
|
return false;
|
|
|
|
if (Family != item.Family)
|
|
return false;
|
|
|
|
if (ValueOriginal != item.ValueOriginal)
|
|
return false;
|
|
|
|
if (ValueAlias != item.ValueAlias)
|
|
return false;
|
|
|
|
return true;
|
|
}
|
|
|
|
public override int GetHashCode()
|
|
{
|
|
return base.GetHashCode();
|
|
}
|
|
}
|
|
}
|