Total de postagens:
4
Karma:
25
Ingressou:
10/04/2011
Localização:
United States
I want to add image for topic object and for news object.. there are more properties i wish to add but i dont think it matter the point is: how to add property for an object what layers do i need to touch ? what is best approach for such thing vesion 1.9 ---- i found this one http://blogs.planetcloud.co.uk/mygreatdiscovery/post/How-to-extend-nopCommerce.aspx but it didnt help to much im using 1.9 and the part about update the update and insert functions seems only for 1.8 any way i was sure that only to update the NopModel.edmx will be enough but it seems it doesnt do the job.. so again with my question how to add property ?
Total de postagens:
309
Karma:
1993
Ingressou:
28/07/2009
Localização:
United Kingdom
Add column in the db, update NopModel.edmx file, add property to the class, compile. so for Topic, you need to add property to Topic.cs
Total de postagens:
4
Karma:
25
Ingressou:
10/04/2011
Localização:
United States
Seems to work.. but just for my understanding.. how come i need to write property for that ? it seems the table mapping in edmx find a mapping by it self to a property with the same name so how come we need to write it our self i know the edmx file doesn't suppose to generate code behind in nopcommerce but i don't understand how it find mapping by it self therefor i don't understand why we need to write the property (well i wrote it because we MUST.. i just want to understand)
Total de postagens:
309
Karma:
1993
Ingressou:
28/07/2009
Localização:
United Kingdom
I suggest you to read http://msdn.microsoft.com/en-us/library/bb399567.aspx