Guest User

Untitled

a guest
Feb 19th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. public class RelatorioArmazem
  2. {
  3. [Key]
  4. public int relatorioId { get; set; }
  5. public int ArmazemId { get; set; }
  6. public decimal valor { get; set; }
  7. public string Nome { get; set; }
  8. public int totalPedido { get; set; }
  9.  
  10. [ForeignKey("ArmazemId")]
  11. public virtual Armazem Armazem { get; set; }
  12. }
  13.  
  14. public class Armazem
  15. {
  16. public int Id { get; set; }
  17.  
  18. [Required]
  19. [StringLength(50)]
  20. public string Nome { get; set; }
  21.  
  22. public int Prazo { get; set; }
  23.  
  24. public virtual ICollection<Deposito> Deposito { get; set; }
  25. public virtual ICollection<RelatorioArmazem> RelatorioDetalhes { get; set; }
  26. }
Add Comment
Please, Sign In to add comment