66 lines
1.6 KiB
C#
66 lines
1.6 KiB
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace MotoresArgentinosV2.Core.DTOs;
|
|
|
|
public class DatosAvisoDto
|
|
{
|
|
// --- Bytes (TinyInt en SQL) ---
|
|
[Column("ID_TIPOAVI")]
|
|
public byte IdTipoavi { get; set; }
|
|
|
|
[Column("ID_SUBRUBRO")]
|
|
public byte IdSubrubro { get; set; }
|
|
|
|
// --- Shorts (SmallInt en SQL) ---
|
|
// ESTE ERA EL CAUSANTE DEL ERROR PRINCIPAL
|
|
[Column("ID_RUBRO")]
|
|
public short IdRubro { get; set; }
|
|
|
|
// --- Ints (Int32 en SQL) ---
|
|
[Column("ID_COMBINADO")]
|
|
public int IdCombinado { get; set; }
|
|
|
|
[Column("PORCENTAJE_COMBINADO")]
|
|
public int PorcentajeCombinado { get; set; }
|
|
|
|
[Column("CANTIDAD_DIAS")]
|
|
public int CantidadDias { get; set; }
|
|
|
|
[Column("DIAS_CORRIDOS")]
|
|
public int DiasCorridos { get; set; }
|
|
|
|
[Column("PALABRAS")]
|
|
public int Palabras { get; set; }
|
|
|
|
[Column("CENTIMETROS")]
|
|
public int Centimetros { get; set; }
|
|
|
|
[Column("COLUMNAS")]
|
|
public int Columnas { get; set; }
|
|
|
|
[Column("TOTAL_AVISOS")]
|
|
public int TotalAvisos { get; set; }
|
|
|
|
[Column("DESTACADO")]
|
|
public int Destacado { get; set; }
|
|
|
|
[Column("PAQUETE")]
|
|
public int Paquete { get; set; }
|
|
|
|
// --- Decimales ---
|
|
[Column("IMPORTE_SINIVA")]
|
|
public decimal ImporteSiniva { get; set; }
|
|
|
|
[Column("IMPORTE_TOTSINIVA")]
|
|
public decimal ImporteTotsiniva { get; set; }
|
|
|
|
// --- Strings ---
|
|
[Column("NOMAVI")]
|
|
public string Nomavi { get; set; } = string.Empty;
|
|
|
|
[Column("TEXTOAVI")]
|
|
public string Textoavi { get; set; } = string.Empty;
|
|
|
|
[Column("DESCRIPCION")]
|
|
public string Descripcion { get; set; } = string.Empty;
|
|
} |