Replies: 1 comment 1 reply
-
Hi, is your db migrations are up to date? and i wonder 'repository.GetAll().ToList()' is normally working? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
private readonly IRepository<MesFactory, int> _factoryRepository;
public FactoryModelsAppService(
IRepository<MesFactory, int> factoryRepository)
{
_factoryRepository = factoryRepository;
}
public async Task<ListResultDto> GetFactoryModels()
{
var query = _factoryRepository.GetAll().ToList();
}
The database, entity, and DTO are all of type int and do not have fields of type long. However, when executing 'GetAll'.'ToList', an exception 'Unable to cast object of type' System 'is thrown Int32' to type 'System.Int64''
Beta Was this translation helpful? Give feedback.
All reactions