On the features page for DO 4.0 (http://wiki.dataobjects.net/index.php?title=Features) it states integration with ADO.Net Data Services (Astoria). Do you have any examples showing this integration? Can you please provide some.

Thank you

This thread was imported from our support forum. The original discussion may contain more detailed answer. Original topic by kristenk.

asked Feb 15 '10 at 22:05

Editor's gravatar image

Editor
46154156157


One Answer:

psulek wrote:

Yes: http://code.google.com/p/dataobjectsdot ... oriaSample Can you also make sample with usage DO4 + Ria Services? Especially class derived from RIA Services DomainService. Because in WCF Data Services (Astoria) you create DataContext based on DataContextBase which is based on yours SessionBound which is responsible for save changes, clear changes, and others. But for Ria Services, it would be helpfull to see same example if it is possible and supported by DO4.


psulek wrote:

Because i started to write something according to Astoria sample, but fails on some errors like:

Entity 'Server.Model.Person' has a property 'Key' with an unsupported type.

That means to me that RIA framework could not "serialize" Entity object (from DO4), concrete field 'Key' of type 'Xtensive.Storage.Key' (could be more than this one, but stops on this). In Astoria, you just decorate class with following attributes (and everything works):

[DataServiceKey("Id")]
[IgnoreProperties("PersistenceState", "Session", "Item", "Type", "Key", "VersionInfo", "IsRemoved")]
public abstract class EntityBase : Entity
{}

I feel that other things can (and will) go wrong with DO + RIA Services...


Alex (Xtensive) wrote:

Yes, this absolutely different to Astoria. RIA Services uses more "advanced" entities and interaction model (although there are known trade-offs), and there are different requirements. So we must evaluate this first.

I can't give any hint on how to deal with it right now just because I just briefly looked up the framework. And this was ~ 3-4 months before this moment ;)


Alex (Xtensive) wrote:

Just briefly looked up the samples. If you'd like to try to integrate with RIA Services right now, it seems you should look up:

From http://code.msdn.microsoft.com/RiaServices

If there will be any exact issues, please contact me, I'll try to help.

answered Mar 04 '10 at 08:19

Editor's gravatar image

Editor
46154156157

Earlier I paid some attention to this - AFAIK, RIA Services integration will be more complex. We'll return back to this, but I suspect, closer to the end of March.

(Mar 04 '10 at 08:19) Alex Yakunin Alex%20Yakunin's gravatar image
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
toggle preview

Subscription:

Once you sign in you will be able to subscribe for any updates here

Tags:

×573

Asked: Feb 15 '10 at 22:05

Seen: 3,341 times

Last updated: Feb 15 '10 at 22:05

powered by OSQA