| Billiam 2007-01-29, 7:21 pm |
| Hi All,
I'm having a problem generating OrdersStorage.sql using OrderMapping.exe.
I'm trying to extend the CreditCardPayment class to save encrypted credit
card numbers in table CreditCardPayments. From the documentation, this seems
simple enough but has not worked. The error I get is:
Warning O0019 - Class XXCreditCardPayment is present in Object Mapping file
but is not present in web.config as a UserTypeName. Is this desired?
Error G0010 - Mapping defined for class XXCreditCardPayment which does not
exist in any provided assembly
To me, it appears that OrderMapping.exe is not picking up my entry for
CreditCardPayment in web.config. The attribute UserTypeName is set to
XXCreditCardPayment contrary to the warning O0019.
Here is what I have done:
My class library is defined as
namespace test
{
[Serializable]
public class XXCreditCardPayment : CreditCardPayment...
My OrderObjectMapping.xml has these changes. I changed CreditCardPayment to
XXCreditCardPayment. I am just adding a column or two to this.
<Class Name="XXCreditCardPayment">
<Property Name="PaymentId"/>
<Property Name="OrderGroupId"/>...
<Property Name="JDECreditCardNumber"/>
</Class>
<ClassTableMap Class="XXCreditCardPayment" Table="CreditCardPayments">
<PropertyMap Property="PaymentId" Column="PaymentId" />
<PropertyMap Property="OrderFormId" Column="OrderFormId" />...
<PropertyMap Property="JDECreditCardNumber"
Column="JDECreditCardNumber" />
</ClassTableMap>
I left the CreditCardPayments table definition the same (did add the needed
columns).
My web.config has the following:
<Types>
<Type Key="CreditCardPayment" UserTypeName="XXCreditCardPayment"
AssemblyType="Local" NameSpace="test" Assembly="test" />...
</Types>
Has anyone else encountered issues or solutions for extending
CreditCardPayment?
Thanks,
Billiam
|