Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "ofirav"

Excellent! thank you :)

Hi

First of all, I would like to say it's a great framework, a real timesaver! I am trying to build a simple app with Angular & EF The angular part is working properly, including a custom controller built for file uploading - I understand the concept repositories, appservice and domain services and it works properly .

My problem is - when I try to call _productsAppService.GetProducts() from WebApi - it returns the exception: "The operation cannot be completed because the DbContext has been disposed"

Same method called from the angular service - works properly.

The row that fails is for example: List<Product> products = _productsRepository.GetAll().ToList();

what am I missing here? The webapi controller inherits from "AbpApiController", I don't touch the connection or the context myself, only working with IRepository<T> ... is there some special configuration for that case?

Thank you in advance, Ofir

Showing 1 to 2 of 2 entries