with the help of this link (https://www.nopcommerce.com/docs/75/plugin-with-data-access.aspx) we created a table within plugin.. but when i try to create another table in same class i got negative result... Is there any other way to do this possible..? i want to change the following code,
namespace Nop.Plugin.Other.ProductViewTracker.Data
{
public class TrackingRecordMap : EntityTypeConfiguration<TrackingRecord>
{
public TrackingRecordMap()
{
ToTable("ProductViewTracking");
//Map the primary key
HasKey(m => m.Id);
//Map the additional properties
Property(m => m.ProductId);
//Avoiding truncation/failure
//so we set the same max length used in the product tame
Property(m => m.ProductName).HasMaxLength(400);
Property(m => m.IpAddress);
Property(m => m.CustomerId);
Property(m => m.IsRegistered);
}
}
}
thanks in advance.