Unable to Update Or Delete A newly created Entity

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
I am getting a Product using

var product = _productService.GetProductById(productId);


System.Data.Entity.DynamicProxies.Product_967DF8C41D79EF2F39AB91BF02B7D169D5293571D588750DA121BAD279B83A8A

the type of product is

I then created a new Entity Apple and wrote the the service for it

var apple= _appleService.GetappleById(appleId);

the type of  appleis


{Nop.Core.Domain.Apples.apple}


as a result , I think , I am unable to update or delete apple :(


please help me...
6 years ago
So far I have

1. Create The Entity Class (e.g Apple.cs)

    Path : Nop/Core/Domain/Entity.cs

2. Create The Mapping Class (e.g AppleMap.cs)

    Path : Nop/Data/Mapping/EntityMap.cs

3. Create a service class and service interface (e.g appleService.cs , IappleService.cs)

    Path : Nop/Services/EntityService.cs AND Nop/Services/IEntityService.cs


I am trying to get the model an apple of apple.cs in my MVC using _appleService

I want the proxy class ..but getting core/domain/apple class :(
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.