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.


Comments (1)

Skip to main content