Hi all,

I am playing with Data Services and NHibernate Linq. I use
AdventureWorks DB and my class derived from NHibernateContext for the
data service. Both NHibernate + Linq 2.1.2 GA.

Everything goes well until I start to traverse.

e.g.

class Address
{
public virtual int AddressID { get;set;}
public virtual string Name { get;set; }
public virtual StateProvince StateProvinceID { get;set}
}

class StateProvince
{
public virtual int StateProvinceID { get;set;}
public virtual string Name { get;set;}
}
{

I can now query my service with:
http://myservice/Addresses(1)

but as soon as I now traverse like

http://myservice/Addresses(1)/StateProvinceID

I get "resourceType must be a type assignable to resourceSet"
exception in data.services.dll.

I made sure the StateProvince is not lazyly loaded, and I even
downloaded the nhibernate linq source. But I am not getting further.

The problem was already discussed here
http://social.msdn.microsoft.com/Forums/en/adodotnetdataservices/thread/fcdaca20-73ea-4abb-b70b-981fe2728351


Thanks for help!

Cheers,
Tobias

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