Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • fabrice 104 posts 227 karma points
    Aug 02, 2010 @ 15:53
    fabrice
    1

    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

     

  • Matt Brailsford 4125 posts 22222 karma points MVP 9x c-trib
    Aug 02, 2010 @ 16:12
    Matt Brailsford
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft