Click here to Skip to main content
15,892,768 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a requirement to add a new table in nopCommerce solution. I am following the article shared at lateshtclick.com.

How to add new table to nopcommerce[^]

By following the instructions mentioned, I am able to add a new model in Nop.Admin project and it works fine. But when I tried do the same in Nop.Web project. I stuck at Step 5.
In Step 5 it says, Open this path ~\Nop.Admin\Infrastructure. Open AutoMapperConfiguration.cs class and write below code for Mapping Model to Entity and Entity to Model.
The problem is, I cannot see any file named AutoMapperConfiguration.cs.
How I can have it? Do I have to create a new file or is there any other class where I can map the model to entity and entity to model.
Any help will be appreciated.

What I have tried:

I have successfully added a new table in Nop.Admin (interface of admin side add form. But we want to add a form User Interface)
Posted
Updated 9-Apr-19 0:56am
v5
Comments
RickZeeland 21-Jun-17 14:33pm    
Maybe you can use SQL Server Management Studio ?
Member 12837407 22-Jun-17 5:22am    
Yes Dear,
I have used SQL Server Management Studio.

As I have no experience with NopCommerce I can only give this tip:
Go to GitHub and download the source code: GitHub - nopSolutions/nopCommerce: Free open-source ecommerce shopping cart (ASP.NET MVC)[^]
Then search for SQL routines using tables that interest you, e.g. in an SQL script: nopCommerce/upgrade.sql at 075a2a57fdb53cac5599db2cdea8d64fce578ba4 · nopSolutions/nopCommerce · GitHub[^]
 
Share this answer
 
v2
Comments
Member 12837407 22-Jun-17 5:51am    
thanks for your suggestion, but we have a problem still
RickZeeland 22-Jun-17 6:06am    
Maybe you can post it as an "issue" on the NopCommerce GitHub site.
you do not need to create table in nop.web.

create the table as in the article and refrence its entity from the nop.web project
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900