Ado.net entity model problem

Posted by ognjenb on Stack Overflow See other posts from Stack Overflow or by ognjenb
Published on 2010-04-16T08:54:11Z Indexed on 2010/04/16 9:03 UTC
Read the original article Hit count: 248

Filed under:
|
public ActionResult Index()
    {
        using (testEntities korisnici = new testEntities())
        {
            my_aspnet_users user = new my_aspnet_users();
            user = from i in korisnici.my_aspnet_users
                   select i;
            return View(user);
        }
    }

Error: Cannot implicitly convert type 'System.Linq.IQueryable' to 'MyApp.Models.my_aspnet_users'. An explicit conversion exists (are you missing a cast?)

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about c#