2
I’m failing to develop the following environment:
public abstract class AplicacaoGenerica<TEntity> where TEntity : class
{
private IRepositorio<TEntity> repositorio;
public AplicacaoGenerica(IRepositorio<TEntity> repo)
{
repositorio = repo;
}
(...)
}
Shows no error 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, Applicaogenerica, which has a constructor. So I create a class Bandeiraapplication that implements Applicaogenerica. Then the Application Class tries to call the Application Flag constructor.