internal fields?

18 views
Skip to first unread message

Serenarules

unread,
Oct 31, 2011, 9:41:33 AM10/31/11
to nhusers
Does nhibernate support fields marked "internal"?

I know it can use "field" access to get to "private" fields, but what
about those simply marked "internal"? I'm looking for an easy way to
make downline entity properties available to the aggregate root,
without relying on getters, or specializes "asking" methods such as
"GetSomeValue()".

If it can, are there any special considerations I need to take into
account, like making it virtual? Since "private" only doesn't seem to
require it, I wouldn't think "internal" would either. But I don't have
time to test this myself right now.

Thanks in advance to anybody who answers.

Jason Meckley

unread,
Oct 31, 2011, 12:43:33 PM10/31/11
to nhu...@googlegroups.com
in the time you've waited for a response you could have tested this :) I think it's just "protected internal virtual". If not the error messages will guide you when you build the session factory.

Serenarules

unread,
Oct 31, 2011, 1:29:38 PM10/31/11
to nhusers
Thanks for replying. But I'm not at a PC with an IDE at the moment. =)

Jason Meckley

unread,
Oct 31, 2011, 4:37:14 PM10/31/11
to nhu...@googlegroups.com
you don't need an IDE to compile code.

TheCPUWizard

unread,
Oct 31, 2011, 5:49:51 PM10/31/11
to nhu...@googlegroups.com

Conversely, you can use an IDE without ever compiling code <grin>

--
You received this message because you are subscribed to the Google Groups "nhusers" group.
To view this discussion on the web visit https://groups.google.com/d/msg/nhusers/-/_oXp4O6It_4J.
To post to this group, send email to nhu...@googlegroups.com.
To unsubscribe from this group, send email to nhusers+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.

Reply all
Reply to author
Forward
0 new messages