I'm not able to develop the following environment:
public abstract class AplicacaoGenerica<TEntity> where TEntity : class
{
private IRepositorio<TEntity> repositorio;
public AplicacaoGenerica(IRepositorio<TEntity> repo)
{
repositorio = repo;
}
(...)
}
There is no error in this class.
public class BandeiraAplicacao : AplicacaoGenerica<Bandeira>
{
}
In this class the following error appears:
Does not contain a constructor that takes 0 arguments
public class BandeiraAplicacaoConstrutor
{
public static BandeiraAplicacao BandeiraAplicacaoEF()
{
return new BandeiraAplicacao(new BandeiraRepositorioEF());
}
}
Displays the following error:
Does not contain a constructor that takes 1 arguments
I have an abstract class, GeneralApplication, which has a constructor. Then I create a BandeiraApplication class that implements GeneralApplication. Then the Flag Class Application Builder tries to call the Flag builder Application.