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.
Hace 13 años
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!!
Hace 13 años
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
Hace 13 años
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
Hace 13 años
Hi,

Where will I find the EF EDMX file ?

Is adding a new field this simple now..

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