Private Setter

65 views
Skip to first unread message

Tim

unread,
May 3, 2011, 8:46:24 AM5/3/11
to Business Logic Toolkit for .NET
Hi,

Great framework, I am trying to escape the complexity of NHibernate
and it has been a success so far.

It seems like you are unable to use private setters when using linq.
Is that case? Is there a way to override this behavior? My business
logic requires the data to be set internally.

Thanks Tim

Igor Tkachev

unread,
May 3, 2011, 9:26:18 AM5/3/11
to Tim
Hello, Tim.


public class Class1
{
int _int32 = 0;
[MapField(Storage = "_int32")]
public int Int32
{
get { return _int32; }
}
}

> Hi,

> Thanks Tim


--
Regards,
Igor

Tim Ryan

unread,
May 3, 2011, 9:55:45 AM5/3/11
to blto...@googlegroups.com
Great, thanks. Just what I was looking for. 
Reply all
Reply to author
Forward
0 new messages