Print Page | Close Window

How To Ignore a Field

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=2462
Printed Date: 04-May-2025 at 1:20am


Topic: How To Ignore a Field
Posted By: gregweb
Subject: How To Ignore a Field
Date Posted: 22-Jan-2011 at 9:55pm
Say I have a table with three fields.  But I only want two of them to come accross the wire.  Is there a way to tell DevForce to ignore the 3rd field?  This would keep the data much smaller coming across the wire.
 
Greg



Replies:
Posted By: sbelini
Date Posted: 24-Jan-2011 at 12:09pm
Hi Greg,
 
What is your case scenario?
Are you trying to ignore the field for certain users, but not for others? (i.e. a conditional 'ignore') Or are you want to ignore the field for everyone?
 
We have these as feature requests in our list, but unfortunatelly don't have the functionality yet.
 
Silvio.


Posted By: gregweb
Date Posted: 24-Jan-2011 at 6:50pm
I would like to have it ignored for everyone.  In Ria Services, they have the "Ignore" attribute and it is makes it so it is never downloaded.   It's not that important, but it would be nice. 


Posted By: smi-mark
Date Posted: 25-Jan-2011 at 8:07am
If you NEVER need to use it in your model, shouldn't deleting it from the EDM designer accomplish this? I haven't tested it so I'm not sure.


Posted By: sbelini
Date Posted: 25-Jan-2011 at 9:06am
Hi smi-mark,
 
I thought about it and neglected to mention it.
Since Greg seems to be coming from the "RIA world" I assumed that he was looking for the same 'ignore' functionality where you can still make use of the ignored property in the server.
 
And yes, if you delete the property from your model, it will not be part of the model at all. Just be sure you are not deleting a non-nullable field.


Posted By: gregweb
Date Posted: 25-Jan-2011 at 7:28pm
Hi Silvio,
 
Yes, that should work just fine.  I should have thought of that myself!
 
Greg



Print Page | Close Window