Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- namespace conexaoPostgre.Models
- {
- public partial class Colaborador
- {
- [Key]
- public int Id { get; set; }
- [Required]
- public string Nome { get; set; }
- [Required]
- public float Salario { get; set; }
- [ForeignKey("Cargo")]
- [Required]
- public int IdCargo { get; set; }
- public Cargo Cargo { get; set; }
- }
- }
Add Comment
Please, Sign In to add comment