Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ProjetoConfiguracao : EntityTypeConfiguration<Projeto>
- {
- public ProjetoConfiguracao()
- {
- Property(x => x.VerbaDestinada).IsOptional().HasColumnType("Real");
- #region Configuracao
- HasKey(p => new { p.CodigoProjeto, p.CPF });
- HasRequired(projeto => projeto.Gerente)
- .WithMany(pessoa => pessoa.Projetos)
- .HasForeignKey(projeto => projeto.CPF);
- ToTable("Projetos");
- #endregion
- }
- }
Add Comment
Please, Sign In to add comment