hi Ian
I dont think that you can prevent it from being fetched, but cant you
just make into a private property instead?
[Property(Insert=true,Update=false)]
private byte[] Password
{
...
}
best regards,
Mark Jensen
On Feb 12, 5:10 pm, dawson <[email protected]> wrote:
> Hi,
>
> Just started using activerecord this week and think it's excellent.
> One thing I would like to do though is for a property to be write
> only.
>
> Specifically I have created a user object with a password property.
> I know how to decorate it so that you can specify to enable it for
> Inserts or Updates
>
> [Castle.ActiveRecord.Property(Insert=true,Update=false)]
> public byte[] Password
> {
> get { return _password; }
> set { _password = value; }
>
> }
>
> but is there a similar way on selects such that when I do something
> like
>
> MMUser User = MMUser.Find(userId);
>
> it will not retrieve the password?
>
> Thanks, Ian
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---