If you ask UCommerce, they'll recommend you use UCommerce.Entities, but in my experience UCommerce.EntitiesV2 is much quicker.
UCommerce.Entities is written using Subsonic IOC, where as UCommerce.EntitiesV2 uses NHibernate. UCommerce are currently working on moving everything over to NHibernate.
The problem you'll find though is that EntitiesV2 doesn't have all the methods Entities currently has, so it's not possible to used just EntitiesV2 yet. Therefore I'd probably say use Entities unless you find some bottlenecks in speed, in which case see if you can use EntitiesV2. Be warned though, there is no easy way to convert between the 2, so try and stay consistant.
Should we use UCommerce.Entities or UCommerce.EntitiesV2
Hello,
I would like to know what is the preferable namescape to query the database throw Ucommerce.dll :
UCommerce.Entities or UCommerce.EntitiesV2 ?
Thank you
Hi Fabrice,
If you ask UCommerce, they'll recommend you use UCommerce.Entities, but in my experience UCommerce.EntitiesV2 is much quicker.
UCommerce.Entities is written using Subsonic IOC, where as UCommerce.EntitiesV2 uses NHibernate. UCommerce are currently working on moving everything over to NHibernate.
The problem you'll find though is that EntitiesV2 doesn't have all the methods Entities currently has, so it's not possible to used just EntitiesV2 yet. Therefore I'd probably say use Entities unless you find some bottlenecks in speed, in which case see if you can use EntitiesV2. Be warned though, there is no easy way to convert between the 2, so try and stay consistant.
Matt
is working on a reply...