What is that?... and how could this been done with projection? :)
On Feb 13, 1:11 pm, Ben Lovell <[email protected]> wrote: > You could use a projection instead. This is the only way to control exactly > what is fetched. Although I'm not sure this is exactly what you're after? > > On Fri, Feb 13, 2009 at 11:29 AM, dawson <[email protected]> wrote: > > > Yep, can do that. > > Just wondered if there was a way to ignore it on selects as it's not > > really necessary. > > > Thanks though, Ian > > > On Feb 13, 9:56 am, Mark Jensen <[email protected]> wrote: > > > 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 -~----------~----~----~----~------~----~------~--~---
