I have added a linq to sql layer in my MVC 2 application.
This is the code I am using:
using (ProductPortalDataContext ctx = new ProductPortalDataContext())
var Title = from aps in ProductPortal.Models.AppSettingsView
where aps.LanguageID = Lang
It says to be unable to find a quey model for AppSettings view and then says "where not found".
Tried googling, nothing came up. Tried searching here(first two pages) and nothing that seemed relevant popped up.
But the best of all, created a new ASP.NET applicatio, imported the model using Linq to SQL and it compiled!
No idea what I am doing wrong... hints?
(some time later...)
Ok, I tried adding a button and a label to the asp.net application j
View Complete Post