Hi
Thanks. So there is no way for me to not expose the collection
Releases and make it readonly for the users of the object? I want them
to go thru the method AddRelease(Release release), and not expose the
List.

Regards

2009/6/10 Tuna Toksoz <[email protected]>:
> Oh, right if NH don't know about Releases it cannot know what it actually
> refers to.
>
> Tuna Toksöz
> Eternal sunshine of the open source mind.
>
> http://devlicio.us/blogs/tuna_toksoz
> http://tunatoksoz.com
> http://twitter.com/tehlike
>
>
>
>
> On Wed, Jun 10, 2009 at 11:03 AM, Erik Forsberg <[email protected]>
> wrote:
>>
>> Hi
>> Yoru correct about m_data, but it works if a make m_releases public
>> and makes the query like
>>
>> var query = from package in m_data.OrderUsingSortDetails
>> (sortDetails).Skip((pageIndex - 1) * pageSize).Take(pageSize)
>>                  where package.m_releases.Any(x => x.Id == releaseId)
>>                  select package;
>>
>>
>> Thats the strange part then?
>>
>> Regards
>> JEA
>>
>> 2009/6/10 Tuna Toksoz <[email protected]>:
>> > Hi
>> >
>> > m_data.OrderUsingSortDetails
>> >
>> > so what is m_data? the IQueryable coming from NH? Your query seemed
>> > unsupported to me because you're further restricting AFTER Take and
>> > Skip.
>> > Moreover, OrderUsingSortDetails will not be recognized by NHLQ as it is
>> > a
>> > custom method and there is no built in way of doing it.
>> >
>> >
>> >
>> > Tuna Toksöz
>> > Eternal sunshine of the open source mind.
>> >
>> > http://devlicio.us/blogs/tuna_toksoz
>> > http://tunatoksoz.com
>> > http://twitter.com/tehlike
>> >
>> >
>> >
>> >
>> > On Wed, Jun 10, 2009 at 10:55 AM, Erik Forsberg <[email protected]>
>> > wrote:
>> >>
>> >> Hi Tuna
>> >> Its a extension method for sorting that returns
>> >> IOrderedQueryable<ENTITY>, similar implementation to the one found at
>> >>
>> >>
>> >> http://stackoverflow.com/questions/307512/how-do-i-apply-orderby-on-an-iqueryable-using-a-string-column-name-within-a-gener/308863#308863
>> >>
>> >> Im sure that its somehow connected to that Releases is a getter and
>> >> the actuall data property is a private readonly member (m_releases).
>> >> If I make m_releases  public and make the query directly against it,
>> >> then it works.
>> >>
>> >> Regards
>> >> Jea
>> >>
>> >>
>> >> 2009/6/10 Tuna Toksoz <[email protected]>:
>> >> > OrderUsingSortDetails
>> >> >
>> >> > what is this?
>> >> >
>> >> >
>> >> >
>> >> > Tuna Toksöz
>> >> > Eternal sunshine of the open source mind.
>> >> >
>> >> > http://devlicio.us/blogs/tuna_toksoz
>> >> > http://tunatoksoz.com
>> >> > http://twitter.com/tehlike
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > On Wed, Jun 10, 2009 at 10:48 AM, Jea <[email protected]> wrote:
>> >> >>
>> >> >> The query causing the exception is the following
>> >> >
>> >> > >
>> >> >
>> >>
>> >>
>> >
>> >
>> > >
>> >
>>
>>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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