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

Activities of "f0rza"

Hi,

I have big database with ~400 tables and ~300 views. Going to start using MVC/EF. Selected ASP.NET Boilerplate as framework. As I can understand best approach for me use 'Database First' model.

  1. Have created .edmx, customized T4 templates to inherit generated classes from Abp.Domain.Entities.Entity.
  2. My dbContext file inherits from AbpDbContext.

Have following code:

public class ArticlesAppService : TWAppServiceBase, IArticlesAppService
    {
        private readonly IRepository<Articles_T> artRepository;

        public ArticlesAppService(IRepository<Articles_T> artRepository)
        {
            this.artRepository = artRepository;
        }

        public Articles_T Get(int id)
        {
            return artRepository.Get(id);
        }
}

and when I execute Get method - have an error:

_An exception of type 'System.ApplicationException' occurred in EntityFramework.DynamicFilters.dll but was not handled in user code

Additional information: Filter name MustHaveTenant not found_

Are there any ideas what is wrong ?

Showing 1 to 1 of 1 entries