mm coool

2010/1/21 Fabio Maulo <[email protected]>

> var mp = persistentClass.MappedClass;
> from p in persistentClass.PropertyIterator select p.GetGetter(mp).Method
>
> 2010/1/21 José F. Romaniello <[email protected]>
>
>> I used mappings metadata to build an component. I feed this component with
>> a queryable (nhlinq criteria based), and the component build "sorts" and
>> "filters" by it self. But the filter and sorts only will work if the
>> property "is mapped".
>> To determine if the property is a mapped property I've used :
>>
>> var metadata = _sessionFactory.GetClassMetadata(typeof(T));
>> var mappedProperties = metadata.PropertyNames.ToList();
>>
>> Then I need to get all propertyinfo's by reflection, that are mapped.
>> (obviously i do this once per type.)
>>
>> (this is my scenario in case this information is usefull for you)
>>
>>
>> 2010/1/21 Fabio Maulo <[email protected]>
>>
>>>  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]>
>>>> .
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/nhusers?hl=en.
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> 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]<nhusers%[email protected]>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/nhusers?hl=en.
>>>
>>>
>>
>> --
>> 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]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/nhusers?hl=en.
>>
>>
>
>
> --
> 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]<nhusers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>
>
--
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