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.
Il y a 13 ans
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!!
Il y a 13 ans
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
Il y a 13 ans
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
Il y a 13 ans
Hi,

Where will I find the EF EDMX file ?

Is adding a new field this simple now..

Thanks
Il y a 13 ans
Found it, and the post from Ben on the whole process - cheers
Il y a 13 ans
it is in Data folder of Nop.BusinessLogic progrject, Its name is NopModel.edmx.
Il y a 13 ans
Can you post a link for the post from Ben?
Il y a 13 ans
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.