Property Scope

Posts   
 
    
mwightman
User
Posts: 7
Joined: 31-Mar-2009
# Posted on: 18-May-2009 19:50:24   

Is there a way to change the scope on a property.

I have several properties that should be read only to the UI but not the database. The values are updated as part of a method call.

rdhatch
User
Posts: 198
Joined: 03-Nov-2007
# Posted on: 18-May-2009 21:09:05   

Could you use LLBLGen's Authorization support to deny the user's ability to write to the field?

This is very useful when some people should have write access to a field & others have read-only.

Ryan

mwightman
User
Posts: 7
Joined: 31-Mar-2009
# Posted on: 18-May-2009 21:41:07   

In this case no one should be allowed to update the fields outside the internal scope.

Example the object method is called by an internal service class

internal void DoAction() { this.ActionDate=DateTime.Now; this.ActionTakenBy=this.CurrentIdentity.Name; }

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 19-May-2009 05:40:54   
David Elizondo | LLBLGen Support Team
mwightman
User
Posts: 7
Joined: 31-Mar-2009
# Posted on: 19-May-2009 14:05:54   

This link does not work. I get directed to the forum index.

http://llblgen.com/TinyForum/Messages.aspx?ThreadID=13744

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 19-May-2009 20:07:53   

mwightman wrote:

This link does not work. I get directed to the forum index.

http://llblgen.com/TinyForum/Messages.aspx?ThreadID=13744

Sorry. Apparently the "feature request" forum is private. I paste some text here:

Otis wrote:

readonly is possible, but not in all cases, as a true readonly field has a problem if it's an FK. Different attributes is something we've on our list for v3.

someuser wrote:

I would also like to hide related collections (especially n-m collections) to only allow mutation of the collections from the entity itself through my custom partial methods, to prevent confusion on how to use them.

So you want to map a field on them, yet you don't want to expose them as such? (so the collection/reference should be internal/private) ?

It's something to consider indeed. simple_smile

David Elizondo | LLBLGen Support Team
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39859
Joined: 17-Aug-2003
# Posted on: 21-May-2009 11:15:13   

mwightman wrote:

This link does not work. I get directed to the forum index.

http://llblgen.com/TinyForum/Messages.aspx?ThreadID=13744

You've to be logged in to see the forum. I think you are logged in at www.llblgen.com, while this url links to 'llblgen.com' which is a different url for forms authentication which is used for this forum.

Try this one: http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=13744

Frans Bouma | Lead developer LLBLGen Pro