MatheusdAnd

PedidoDTO

Jun 6th, 2021
528
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4.  
  5. namespace SGPDoceDelicia.Application.DTOs
  6. {
  7.     public class PedidoDTO
  8.     {
  9.         public int Id { get; set; }
  10.  
  11.         [Required]
  12.         [StringLength(20)]
  13.         public string status { get; set; }
  14.        
  15.         [Required]
  16.         public DateTime dtPedido { get; set; }
  17.  
  18.         [Required]
  19.         public DateTime dtPrevista { get; set; }
  20.         public DateTime dtEntrega { get; set; }
  21.         public decimal descontoPedido { get; set; }
  22.         public int ClienteId { get; set; }
  23.         public ClienteDTO Cliente { get; set; }
  24.         public int EnderecoId { get; set; }
  25.         public EnderecoDTO Endereco { get; set; }
  26.         public virtual ICollection<ItemPedidoDTO> ItemPedido { get; set; }
  27.     }
  28. }
RAW Paste Data