Le lundi 2 septembre 2013 09:24:57 UTC+2, Gunnar Liljas a écrit :
>
> static ISession Session { get { return sessionFactory.GetCurrentSession();
> } }
> static ITransaction Trx { get { return Session.BeginTransaction(); } }
>
> ...is quite bad coding practice, IMO, hiding such operations behind
> properties.
>
I agree, it's only to keep short code for the demo :)
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/groups/opt_out.