Page 1 of 1

AutoRepositoryTypes dont working

PostPosted: Thu Jun 01, 2017 11:02 am
by liam1983

I read the documentation and add my BaseRepository to my DbContext
Code: Select all    [AutoRepositoryTypes(
public class CointoDbContext : AbpZeroDbContext<Tenant, Role, User, CointoDbContext>

but after that my Tests failed with

Castle.MicroKernel.ComponentActivator.ComponentActivatorException : ComponentActivator: could not proxy Cointo.EntityFrameworkCore.Repositories.CointoRepositoryBase`1[[Abp.Localization.ApplicationLanguage, Abp.Zero.Common, Version=, Culture=neutral, PublicKeyToken=null]]
---- Castle.DynamicProxy.InvalidProxyConstructorArgumentsException : Can not instantiate proxy of class: Cointo.EntityFrameworkCore.Repositories.CointoRepositoryBase`1[[Abp.Localization.ApplicationLanguage, Abp.Zero.Common, Version=, Culture=neutral, PublicKeyToken=null]].
Could not find a parameterless constructor.

what can I do? Only add a parameterless ctor doesnt help me much

Re: AutoRepositoryTypes dont working

PostPosted: Mon Jun 05, 2017 3:49 am
by ismcagdas

Re: AutoRepositoryTypes dont working

PostPosted: Wed Jun 21, 2017 7:04 am
by liam1983
It would be he doesn't post the solution to this error....