ASP.NET MVC3 Entity Framework - Data Retrieval -



ASP.NET MVC3 Entity Framework - Data Retrieval -

i'm developing study tool boss using asp.net mvc3 , entity framework. i'm using poco model , dbcontext retrieve info our database , create info layer. when created sample info simple: 2 tables little number of columns, , worked liked charm. trying test application in our test environment, issue has arisen.

the database working has 137 tables, need info 2 of tables. i've emulated 2 tables need info , set application accordingly, no dice. question have create class each table, though application using 2 of tables database? also, have read-only privileges in environment. should fine because application selecting data, not manipulating it.

update

the error i'm receiving this:

entitycommandexecutionexception unhandled user code. error occured while executing command definition.

details: system.data.sqlclient.sqlexception: invalid column name

the column name pk have other table i'm joining with.

yes. need either create class or generate classes each table in database. entity framework database must match dbcontext classes. you'll want generate classes you've created database.

http://msdn.microsoft.com/en-us/data/jj206878.aspx

asp.net asp.net-mvc-3 entity-framework poco

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -