(Plugin FixedByWeightByTotal won't show how to do 'admin page' in general, because it's a shipping provider which inherits from IShippingRateComputationMethod. Also look at Nop.Plugin.Misc.SendinBlue which inherits from IMiscPlugin)
when i fetch a list of item from DB, iam getting the following error,
Unmapped members were found. Review the types and members below. Add a custom mapping expression, ignore, add a custom resolver, or modify the source/destination type For no matching constructor, add a no-arg ctor, add optional arguments, or map all of the constructor parameters ============================================================================================== AutoMapper created this type map for you, but your types cannot be mapped using the current configuration. PremSqlReportProxy -> PremSqlReportModel (Destination member list) Castle.Proxies.PremSqlReportProxy -> Nop.Plugin.Report.CustomReport.Models.PremSqlReportModel (Destination member list)
public partial class PremSqlReport : BaseEntity { public string Name { get; set; } public string Description { get; set; } public string Sql { get; set; } }
Mapping Class
public partial class CustomTableMap : NopEntityTypeConfiguration<PremSqlReport> { public override void Configure(EntityTypeBuilder<PremSqlReport> builder) { builder.ToTable(nameof(PremSqlReport));