Hi all,
I have same problem and I define all properties, mappings all steps same as category or other entites.
But when I rebuild Nop.Data project and debug project again, this error doesn't shown, after some minutes or debug without rebuild Nop.Data, it appears again.
Is there any suggestion or solution ?
These classes are in Nop.Data project, not in any plugin..
public partial class ProductPlan : BaseEntity
{
public virtual int ProductId { get; set; }
public virtual int StoreId { get; set; }
public virtual int CategoryId { get; set; }
public virtual DateTime StartDate { get; set; }
public virtual DateTime EndDate { get; set; }
public virtual int DisplayOrder { get; set; }
public virtual bool IsSlider { get; set; }
public virtual bool Deleted { get; set; }
public virtual Product Product { get; set; }
public virtual Category Category { get; set; }
}
public partial class ProductPlanMap : NopEntityTypeConfiguration<ProductPlan>
{
public ProductPlanMap()
{
this.ToTable("ProductPlan");
this.Property(p => p.ProductId).IsRequired();
this.Property(p => p.StoreId).IsRequired();
this.Property(p => p.CategoryId).IsRequired();
this.Property(p => p.DisplayOrder).IsRequired();
this.Property(p => p.StartDate).IsRequired();
this.Property(p => p.EndDate).IsRequired();
this.Property(p => p.IsSlider).IsRequired();
this.Property(p => p.Deleted).IsRequired();
}
}
Thank you