Note that there are some explanatory texts on larger screens.

plurals
  1. POCannot implicitly convert type with IEnumerable
    primarykey
    data
    text
    <p>So I'm chugging along on this MVC application and all is running smoothly. I get up to fix a bite to eat and the next time I build I'm greeted with 4 of these errors:</p> <pre><code>&gt; Error 16 Cannot implicitly convert type &gt; 'System.Collections.Generic.IEnumerable&lt;&gt; &gt; [c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\mscorlib.dll]' &gt; to &gt; 'System.Collections.Generic.IEnumerable&lt;&gt; &gt; [c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\mscorlib.dll]'. &gt; An explicit conversion exists (are you missing a cast?) </code></pre> <p>Keep in mind that there is actually something in IEnumerable&lt;>, I just removed it.</p> <p>This is the 2 classes where the errors are at</p> <pre><code> public partial class PriceListController : Controller { [CanonicalUrlAttribute("PriceList")] [CompressionFilter(Order = 1)] [CacheFilter(Duration = 120, Order = 2)] public virtual ActionResult Index() { GodsCreationTaxidermyEntities context = new GodsCreationTaxidermyEntities(); var viewModel = new PriceListViewModel() { PriceListAnimals = context.GetAnimalListForPriceList() }; return View(viewModel); } [CompressionFilter(Order = 1)] [CacheFilter(Duration = 120, Order = 2)] public virtual ActionResult List(string animal) { GodsCreationTaxidermyEntities context = new GodsCreationTaxidermyEntities(); var viewModel = new PriceListIndexViewModel() { AnimalPrices = context.GetPriceListByAnimal(animal) }; return View(viewModel); } } public partial class GalleryController : Controller { // // GET: /Gallery/ [CanonicalUrlAttribute("Gallery")] [CompressionFilter(Order = 1)] [CacheFilter(Duration = 120, Order = 2)] public virtual ActionResult Index() { GodsCreationTaxidermyEntities context = new GodsCreationTaxidermyEntities(); var viewModel = new GalleryIndexViewModel() { GalleryAnimals = context.GetAnimalListForGallery() }; return View(viewModel); } [CompressionFilter(Order = 1)] [CacheFilter(Duration = 120, Order = 2)] public virtual ActionResult List(string animal) { GodsCreationTaxidermyEntities context = new GodsCreationTaxidermyEntities(); var viewModel = new GalleryListViewModel() { GalleryImages = context.GetGalleryImageByAnimal(animal) }; return View(viewModel); } } </code></pre> <p>I've checked the DAL and Repository and no errors coming from there.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload