I'm pretty sure that everything should work with EntitiesV2. These should be used from now on. The ealier version of uCommerce was build on top of the Subsonic ORM, but it is changed as nHibernate was found to be much more robust. So EntitiesV2 is basically just the API rebuild on nHibernate. Use these classes at all time.
The point of my first question was that it doesn't work with EntitiesV2. There are many references that are not valid. So, I guess it doesn't work. (If anyone's interested, my replacement text didn't seem to work either)
Sorry for the confusion. Anders is right that you should use EntitiesV2 from the UCommerce.dll. Subsonic.Core is no longer shipped with uCommerce 2.0 so just ignore it.
We still need to revise the existing docs to reflect the new API instead of the old.
Volume and weight based shipping pricing are probably the most common shipping scenarios for an online store so lets try and build one of them as an example. First you’ll need to create a new Visual Studio project and add a reference to the UCommerce.dll assembly. You will also need a reference to the Subsonic.Core.dll assembly. With that in place you’re ready to start implementing the service.
Custom Shipping Method
Reading Søren's article on Building a Custom Shipping Method Service. Which seems easy enough. Having a few issues.
Does this work?
For
Hi Tony
I'm pretty sure that everything should work with EntitiesV2. These should be used from now on. The ealier version of uCommerce was build on top of the Subsonic ORM, but it is changed as nHibernate was found to be much more robust. So EntitiesV2 is basically just the API rebuild on nHibernate. Use these classes at all time.
Se Søren's post about the EntitiesV2 here.
The point of my first question was that it doesn't work with EntitiesV2. There are many references that are not valid. So, I guess it doesn't work. (If anyone's interested, my replacement text didn't seem to work either)
No need for subsonic. Cool.
To clarify (sorry, edit not working for me):
Using Entities 'Shipment' is undefined.
Using EntitiesV2 'shipment.OrderLines.First().PurchaseOrders' is not defined
With a bit of trial and error, combining this kinda stuff with the article above should see you right
Hi Tony,
Sorry for the confusion. Anders is right that you should use EntitiesV2 from the UCommerce.dll. Subsonic.Core is no longer shipped with uCommerce 2.0 so just ignore it.
We still need to revise the existing docs to reflect the new API instead of the old.
Might want to edit the docs b/c I'm seeing this 4 years later =\
http://docs.ucommerce.net/ucommerce/v6.7/extending-ucommerce/shipping-method-service.html
Volume Based Shipping Method Service
Volume and weight based shipping pricing are probably the most common shipping scenarios for an online store so lets try and build one of them as an example. First you’ll need to create a new Visual Studio project and add a reference to the UCommerce.dll assembly. You will also need a reference to the Subsonic.Core.dll assembly. With that in place you’re ready to start implementing the service.
is working on a reply...