Guest User

Untitled

a guest
Jul 20th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1.  
  2. public class ProjetoConfiguracao : EntityTypeConfiguration<Projeto>
  3. {
  4. public ProjetoConfiguracao()
  5. {
  6. Property(x => x.VerbaDestinada).IsOptional().HasColumnType("Real");
  7. #region Configuracao
  8. HasKey(p => new { p.CodigoProjeto, p.CPF });
  9. HasRequired(projeto => projeto.Gerente)
  10. .WithMany(pessoa => pessoa.Projetos)
  11. .HasForeignKey(projeto => projeto.CPF);
  12. ToTable("Projetos");
  13. #endregion
  14.  
  15. }
  16.  
  17. }
Add Comment
Please, Sign In to add comment