Hello,
Direct error. I have a ViewModel class called StoreLocationViewModel. Here is the definition.
Inside the Controller I'm trying to initialize the ViewModel
- public async Task
Index() - {
- var viewModel = new StoreLocationViewModel();
- viewModel.Stores = _context.Stores;
Cannot implicitly convert type 'Microsoft.EntityFrameworkCore.DbSet' into 'Applications.Models.Store'.
This is the first time encountering this error and it's too specific in order to find documentation online. Can someone please explain me what does it mean?. Thanks in advance!

Ramesh BarikRank #3,664 · 401 reputationPosted Jun 23, 2017, 1:20 AM EDT
Luis Alberto Delgado de la Flor95 reputationPosted Jun 23, 2017, 10:01 AM EDT
Luis Alberto Delgado de la Flor95 reputationPosted Jun 23, 2017, 12:28 PM EDT