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.

  • Thanabalan 3 posts 23 karma points
    Mar 11, 2014 @ 09:29
    Thanabalan
    0

    could not resolve property: Id of: UCommerce.EntitiesV2.Category

     Hi I am getting the error could not resolve property: Id of: UCommerce.EntitiesV2.Category in c# coding in ucommerce project

    My code is below , Please tell me how can i solve this

    For Each CategoryId In brands
                        If CategoryId <> 0 Then
                            Dim ThisCategory = Category.All().SingleOrDefault(Function(x) x.CategoryId = CategoryId)
                            For Each ThisProduct In ThisProducts
                                If CategoryProductRelation.All().Where(Function(x) x.Category.Id = ThisCategory.Id AndAlso x.Product.Id = ThisProduct.Id).Count > 0 AndAlso TempProducts.Where(Function(x) x.Id = ThisProduct.Id).Count = 0 Then
                                    TempProducts.Add(ThisProduct)
                                End If
                            Next
                        End If
                    Next

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 12, 2014 @ 15:13
    Jan Skovgaard
    0

    Hi Thanalban

    I just want to inform you that I moved your post to the ucommerce support forum since the above issue does not seem to be Umbraco or Razor related.

    Hopefully some of the uCommerce guys will find your issue in here or someone who knows a bit more about uCommerce than I do will see it.

    Cheers,
    Jan 

  • Martin 181 posts 740 karma points
    Mar 12, 2014 @ 17:42
    Martin
    0

    Hi Thanabalan,

    Can you try to use CategoryId property instead of Id? Id is actually  the same as CategoryId (on the Category object) though I guess for some reasons NHibernate can't map Id to the correct column in the database.

    Best regards Martin

  • Nickolaj Lundgreen 233 posts 1132 karma points
    Mar 13, 2014 @ 14:51
    Nickolaj Lundgreen
    0

    EDIT: nevermind :)

Please Sign in or register to post replies

Write your reply to:

Draft