MVC: Auto Generate View

Posts   
 
    
NickD
User
Posts: 224
Joined: 31-Jan-2005
# Posted on: 24-Feb-2009 18:24:59   

I'm using the MVC RC1 code with LLBLGen and Brian Chance's wonderful ModelBinder code helper class. I can type my views to either EntityCollections or single Entities very easily.

What I'm not sure how to do though, is in RC1, they have right click functionality to add views via a template model. So, when I'm in a controller method, I can right click and one of the options is to "Add View..." which brings up a little dialog. One of the options in the dialog is to strongly type that view to something. I check that box to "Strongly Type this View" and then I could be able to pick my entity class I want to bind to. But they're not listed. I do have the DatabaseSpecific item listed, but nothing inside of the DatabaseGeneric namespace. I've added the assemblies to my web.config file in the "pages" element and my views have no problems finding the EntityClasses namespace, but not in that dropdown.

Any ideas anyone?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39859
Joined: 17-Aug-2003
# Posted on: 26-Feb-2009 10:19:24   

No, sorry. It does sound like a reference issue though.

Why not mail the ASP.NET team, like Phil Haack, and explain the issue to them, perhaps they have an answer for you, or it might be a bug somewhere?

Frans Bouma | Lead developer LLBLGen Pro