Basic MVC3 app

Posts   
 
    
Posts: 72
Joined: 11-Aug-2006
# Posted on: 02-Sep-2011 03:16:05   

Hi there

I am moving away from standard EF4 out of the box with VS2010 to LLBLGen Pro 3.1 and have just purchased it.

( Note I used use LLBLGen 2 some years ago ) I generated the code - targeting LLBLGenPro Code .NET 4.0 , copied the connection string to Web.config, referenced the Projects from my MVC3 App. Generated views & Controllers using the LLBLGen Pro classes.

Seemed pretty straight forward as I do everything in MVC app as I would with the EF4 Entities.. and the app looks very much like the MVC app example you posted on the LLBLGen Forums.

I get Error Object reference not set to an instance of an object. at the @foreach (var item in Model) { line of code.

I'm sure I'm missing something really simple..?

Posts: 72
Joined: 11-Aug-2006
# Posted on: 02-Sep-2011 04:01:21   

martytheman wrote:

Hi there

I am moving away from standard EF4 out of the box with VS2010 to LLBLGen Pro 3.1 and have just purchased it.

( Note I used use LLBLGen 2 some years ago ) I generated the code - targeting LLBLGenPro Code .NET 4.0 , copied the connection string to Web.config, referenced the Projects from my MVC3 App. Generated views & Controllers using the LLBLGen Pro classes.

Seemed pretty straight forward as I do everything in MVC app as I would with the EF4 Entities.. and the app looks very much like the MVC app example you posted on the LLBLGen Forums.

I get Error Object reference not set to an instance of an object. at the @foreach (var item in Model) { line of code.

I'm sure I'm missing something really simple..?

DOH! I hadn't got the data in the controller.. forget it!

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 02-Sep-2011 05:23:16   

martytheman wrote:

martytheman wrote:

I'm sure I'm missing something really simple..?

DOH! I hadn't got the data in the controller.. forget it!

smile Sure, no worries.

David Elizondo | LLBLGen Support Team