I Fabio,

No problem, I sent you a private message by error instead of a public
one :)

So I'm using Catsle Project IoC and a class named
NHibernateSessionManager whose parts of this article :
http://www.codeproject.com/KB/architecture/NHibernateBestPractices.aspx

I'll try to expose the configuration because it's actually a local
variable.

Thank you for you answers you saved me some precious time.

Best regards,

Florian


On 21 jan, 18:56, Fabio Maulo <[email protected]> wrote:
> Ups... it was a private mail
> This is for the community.
> from pc in cfg.ClassMapping from p in pc.PropertyIterator select p
>
>
>
> ---------- Forwarded message ----------
> From: Fabio Maulo <[email protected]>
> Date: 2010/1/21
> Subject: Re: Enumerate entities and properties at runtime
> To: Florian DREVET <[email protected]>
>
> from pc in cfg.ClassMapping from p in pc.PropertyIterator select p
>
> 2010/1/21 Florian DREVET <[email protected]>
>
> NHibernateSessionManager came from a Code Project article called
> > "NHibernate best practices" and is used with Castle Project IoC.
>
> > I'm building an ASP.NET user friendly tool, whose goal is to let the
> > user configure itself the data he wants to exoprt or import.
>
> > So, I want to get mappings-metadata in order to pre-select properties
> > such as "is unique", "is nullable", etc.
>
> > On 21 jan, 17:45, Fabio Maulo <[email protected]> wrote:
> > > What probably is incorrect is the usage of something
> > > called NHibernateSessionManager...
> > > btw, why and when you are needing mappings-metadata ?
>
> > > 2010/1/21 Florian DREVET <[email protected]>
>
> > > > Great !
>
> > > > James was right but I was looking at the NHibernate session...
>
> > > > I'm using a NHibernateSessionManager class who don't expose the "new
> > > > NHibernate.Cfg.Configuration()" instance.
>
> > > > For an ASP.NET website, does this make a problem if a keep the
> > > > reference in a public field or property ?
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "nhusers" group.
> > > > To post to this group, send email to [email protected].
> > > > To unsubscribe from this group, send email to
> > > > [email protected]<nhusers%[email protected]
> > > >  >
> > <nhusers%[email protected]<nhusers%252bunsubscr...@googlegroup 
> > s.com>>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/nhusers?hl=en.
>
> > > --
> > > Fabio Maulo
>
> --
> Fabio Maulo
>
> --
> Fabio Maulo

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" 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/nhusers?hl=en.

Reply via email to