Yes, for sure the problem is not with nh. It seems the whole problem stems
from the things EF *cannot *do (and thus weren't implemented for
DataServices) - still, if anyone came around it, I'd be more likely to find
him/her here than on whatever wcf forum, I suppose.

That's why I also asked, if there was an alternative to DataServices, that
would give me restful queryability. Plain WCF won't let me do that. There *is
*dynamic linq, but I wouldn't want to have to make this API restful - just
not enough time.

On Sun, May 9, 2010 at 10:04 AM, Paulo Quicoli <[email protected]>wrote:

> Here I'm using NH and WCF and everything is ok. But, I dont use the Data
> Services. I just created services. Maybe your problem is not NH but WCF
> itself.
>
> 2010/5/9 Jan Limpens <[email protected]>
>
>> I am in the situaution, where I have an entity with a component-mapped
>> list.
>>
>> <component name="UnitsOfMeasure" insert="true" update="true"
>> access="field.camelcase-underscore" optimistic-lock="true"
>> class="UnitOfMeasure+UnitsOfMeasure">
>>   <parent name="InventoryItem" />
>>   <set access="field.camelcase-underscore" cascade="all-delete-orphan"
>> lazy="true" name="Items" table="UnitsOfMeasure" mutable="true">
>>     <key foreign-key="FK_InventoryItem_UnitsOfMeasure">
>>         <column name="UnitsOfMeasure_id" />
>>     </key>
>>     <composite-element class="UnitOfMeasure">
>>         <property access="backfield" name="CanPrice"
>> type="System.Boolean"/>
>>         <property access="backfield" name="CanSell"
>> type="System.Boolean"/>
>>         ...
>>     </composite-element>
>>   </set>
>> </component>
>>
>> This works well, I just put it here for illustration.
>>
>> However, when I try to expose this as a DataService I get this complaint:
>> The server encountered an error processing the request. The exception
>> message is 'The property 'UnitsOfMeasure' on type 'InventoryItem' is not a
>> valid property. Properties whose types are collection of primitives or
>> complex types are not supported.'
>>
>> Is there any way around this, even at a broad level (I do not have to use
>> DataServices, only it seems to fit the Rest+Query+Update bill quite nicely)?
>>
>>
>> --
>> Jan
>>
>> --
>> 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.
>>
>
>
>
> --
> Paulo Quicoli
> Editor Técnico: .NET Magazine, ClubeDelphi Magazine, WebMobile Magazine
> www.devmedia.com.br
> http://pauloquicoli.spaces.live.com
> twitter:@pauloquicoli
>
> --
> 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.
>



-- 
Jan

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