I used the same package ealrier too, and could not perform following steps..
Nop.BusinessLogic Data NopModel.edmx (File Modified) <#Include> Add - Table Nop_Banner Entity: Banner Entity Set Name: Banners </#Include> (for above steps, I dont see code in the NOPmodel.edmx file, its all kind of boxes and tables not sure how to add table, entity etc)
NopObjectContext.cs (File Modified) (I couldnt find this file) <#Include> /// <summary> /// Gets an Banner instance that is used to query, add, modify, and delete objects of the specified entity type. /// </summary> public ObjectSet<Banner> Banners { get { if ((_banners == null)) { _banners = CreateObjectSet<Banner>(); } return _banners; } } private ObjectSet<Banner> _banners; </#Include>
If you using visual studio 2010, these question will be easy to resolve.
in data dir you must be found a file name NopObjectContext.ObjectSets.tt. open it and add using NopSolutions.NopCommerce.BusinessLogic.Advertise;
after, open NopModel.edmx with wizards. and update it from database, and you will find table name Nop_Banner, select it and press OK. NopObjectContext.ObjectSets.cs will be created.
your NopModel.edmx will add a table Nop_Banner, notice, you must be rename Nop_Banner to Banner.
I used your Banner files from your upload and the original nopCommerce 1.9 source files. I did not install any of the original Banner files My site compiles and the banner manager page displays. I have added 1 banner but admittedly I'm not following what I am supposed to.
#1 What values are supposed to be in fields, Details Banner, Url Link, Target Link, Position Name #2 When I attempt to add a second banner it doesn't appear to save. I have viewed all of the public store pages but there is no banner.