Using ExecuteQuery() with entity framework, entity class.

Posted by sfreelander on Stack Overflow See other posts from Stack Overflow or by sfreelander
Published on 2011-01-16T17:36:51Z Indexed on 2011/01/16 17:53 UTC
Read the original article Hit count: 165

I am trying to jump from ASP Classic to asp.net. I have followed tutorials to get Entity Framework and LINQ to connect to my test database, but I am having difficulties figuring out ExecuteQuery(). I believe the problem is that I need an "entity class" for my database, but I can't figure out how to do it. Here is my simple code:

Dim db as New TestModel.TestEntity
Dim results AS IEnumerable(OF ???) = db.ExecuteQuery(Of ???)("Select * from Table1")

From the microsoft example site, they use an entity class called Customers, but I don't understand what that means.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about entity-framework