@object, You also must take some things in consideration: - Relations must be entities or simple collections of entities (IList<T>, IEnumerable<T>), not sets (ISet<T>, HashSet<T>) or maps (IDictionary, IDictionary<K, V>, HashTable); - The ID property must be called either "ID", or end with "ID", for example, "CustomerID", otherwise you must apply the DataServiceKeyAttribute to the primary key property; - The ID property must have a public setter as well as a public getter; - The ID property must be of a basic type, such as int or string; - The collections to expose must be public properties of type IQueryable<T> or IOrderedQueryable<T>.
RP On May 9, 2:17 am, José F. Romaniello <[email protected]> wrote: > I think this is newest: > > http://weblogs.asp.net/cibrax/archive/2010/08/13/nhibernating-a-wcf-d... > > 2011/5/7, object <[email protected]>: > > > > > > > > > > > Hi, > > > I am trying to create an OData feed using NHibernate and I am confused > > about the information about its support of IUpdatable interface. I've > > found posts by Shawn Wildermuth about his implementation of IUpdatable > > interface for NH to support WCF Data Services (http://wildermuth.com/ > > 2008/08/03/Implementing_IUpdatable_%28Part_3%29). There is also > > Ayende's post referring to this implementation. In comment to his 3 > > years old post Shawn suggests downloading NH LINQ to look at the > > sources. > > > But I haven't found anything related to IUpdatable in recent NH > > sources. There is not such interface referenced in NH solutions and > > projects. And on the net there are some sketches and samples, but no > > full implementation. > > > So if anyone knows the status of support for WCF Data Services by > > NHibernate, I will appreciate if you clarify this for me. Right now I > > don't really understand the state of this feature. > > > Thanks in advance. > > > -- > > 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. > > -- > Enviado desde mi dispositivo móvil -- 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.
