ASP.NET MVC Application, strongly typed views

Posts   
 
    
Krish
User
Posts: 91
Joined: 02-Jan-2008
# Posted on: 14-Jul-2009 08:43:17   

In an ASP.NET MVC application, when I create a strongly typed view, say for editing, using one of the entity classes created by llblgen pro, in addition to the database table fields, other properties are also used to generate editable text boxes etc. eg. IsDirty, IsNew, ObjectId etc. How do I prevent these fields from being used to generate editable text boxes.

I am using llblgen pro 2.6, final version. Two-class self servicing, C#.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39861
Joined: 17-Aug-2003
# Posted on: 14-Jul-2009 10:06:03   

If you use the datasource control, it's done for you (filtering out unwanted properties), otherwise you've to filter them out manually, by defining the ones you want manually.

Frans Bouma | Lead developer LLBLGen Pro
Krish
User
Posts: 91
Joined: 02-Jan-2008
# Posted on: 14-Jul-2009 13:33:00   

Thanks for the prompt reply.

I had posted another question at the following thread (http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=10387&StartAtMessage=0&#90729) but I have not received any reply. Can you please reply.

Walaa avatar
Walaa
Support Team
Posts: 14993
Joined: 21-Aug-2005
# Posted on: 15-Jul-2009 10:37:54   

We are not that much into ASP.NET MVC, so I hoped you get a reply from the community. I'll look into it and see if I can be helpful.