2.0 Typo - redundant code?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 years ago
I assume this is just a copy/paste typo

namespace Nop.Data.Mapping.Catalog
{
    public partial class ProductPictureMap : EntityTypeConfiguration<ProductPicture>
    {
        public ProductPictureMap()
        {
            this.ToTable("Product_Picture_Mapping");
            this.HasKey(pp => pp.Id);
            
            this.HasRequired(pp => pp.Picture)
                .WithMany(p => p.ProductPictures)
                .HasForeignKey(pp => pp.PictureId);


            this.HasRequired(pp => pp.Product)
                .WithMany(p => p.ProductPictures)
                .HasForeignKey(pp => pp.ProductId);
        }
    }
}
12 years ago
Where exactly is a typo? What is redundant?
12 years ago
sorry, my eyes must have been playing tricks on me.  I thought both lines said  pp.Picture
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.