- 132
- 870
- 9/22/2011
- Italy
Hi,
I'm implementing some changes for my customer and I can't understand how the customer Class is linked to the GenericAttributeExtentions.
If I need to link my custom class to this extensions, how can I do?
Thanks, Domenico.
- 11370
- 101402
- 5/22/2011
- United States
Search the solution for SystemCustomerAttributeNames.Gender, to see how its used
- 132
- 870
- 9/22/2011
- Italy
The problem is, I can't see the method GetAttribute from my customer class...
Like Customer.GetAttribute(...)
- 329
- 4194
- 4/27/2010
- Netherlands
GetAttribute is an extension of BaseEntity. Make sure to reference and import Nop.Services.Common and that your class derives from BaseEntity
- 132
- 870
- 9/22/2011
- Italy
Yes, I did it... But it doesnt' work...
- 132
- 870
- 9/22/2011
- Italy
Yes, it works.
But if you write this code inside another xxx.Services project, this doesn't works.
I've referenced the all the same assembly of original Nop.Services project...
What I miss?
- 329
- 4194
- 4/27/2010
- Netherlands
You need to reference nop.services.dll for Nop.Services.Common.GenericAttributeExtentions
You need to reference nop.core.dll for Nop.Core.BaseEntity
- 132
- 870
- 9/22/2011
- Italy
Yes, already did it but with no luck.
- 11370
- 101402
- 5/22/2011
- United States
You also need
using Nop.Core.Domain.Customers;
What doesn't work? Are you getting a syntax error? (what is it?)