Welcome to MSDN Blogs Sign in | Join | Help

Marcelo's WebLog

Improving the world one entity at a time
Another ADO.NET Data Service metadata tip

Today's tip is a pretty short one.

If you see a 'ReflectionServiceProvider' type on an error call stack, you'll know that the 'T' in DataService<T> is not recognized as an ADO.NET Entity Framework data source (the type is actually rather simple - the 'T' should inherit from ObjectContext).

If the source is an ADO.NET Entity Framework data source, the internal type that's the counterpart of 'ReflectionServiceProvider' is called 'ObjectContextServiceProvider' (not too creative, I know).

Of course, these internal details are subject to change, and you shouldn't rely on them ever ever ever for anything other than an occasional troubleshooting session.

Enjoy!

Posted: Monday, August 25, 2008 4:00 PM by marcelolr

Comments

Eyal Vardi said:

I build nice tool for DS.

http://www.codeplex.com/DataServicesTool

What u think?

# August 27, 2008 6:12 PM
New Comments to this post are disabled
Page view tracker