Adding New Database Field For Product In 1.8

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 年 前
Can someone post up the process of adding a field into the products table, is it as straight forward as adding a field and then looking through the DAL and adding it where needed.  Or does 1.8 still rely on those horrible stored procedures!!
13 年 前
There are still a few stored procedures used for paging etc. so you will need to update these to include your new field.

Apart from that, it is just a case of adding your new property to the product class, adding the field to the Nop_Products table, then opening up your EF EDMX file and select Update Model From Database.

HTH
13 年 前
Damn I was hoping they would have dropped all the stored procedures during the EF upgrade!  Thanks for the info, I'll give it a go later
13 年 前
Hi,

Where will I find the EF EDMX file ?

Is adding a new field this simple now..

Thanks
13 年 前
Found it, and the post from Ben on the whole process - cheers
13 年 前
it is in Data folder of Nop.BusinessLogic progrject, Its name is NopModel.edmx.
13 年 前
Can you post a link for the post from Ben?
13 年 前
It's in this topic:

https://www.nopcommerce.com/boards/t/6370/how-to-extending-nopcommerce.aspx

or direct:

http://blogs.planetcloud.co.uk/mygreatdiscovery/post/How-to-extend-nopCommerce.aspx

Rod
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.