Can SDX be used with WH entities based on ObjectContext instead of DbContext?

Jul 22, 2013 at 4:57 PM
Hi,

We have warehouse entities based on ObjectContext. The walk-through only shows how to use SDX with DbContext based entities. Can ObjeCTContext warehouse entities be used instead?

Thank you,
Vlad.
Jul 31, 2013 at 10:52 AM
Edited Jul 31, 2013 at 12:14 PM
You probably could make SSAS Entity Framework Provider work with ObjectContext, but we did not test and do not support this scenario, and recommend to switch to DbContext.

Most likely you will be able to reuse all or most of your existing code without changes, so we expect it should not be difficult.
Here you can find an example how to wrap your existing ObjectContext into DbContext:
http://social.msdn.microsoft.com/Forums/en-US/09ec3326-d1f4-45e8-9911-aa7edadbc62b/mixing-dbcontext-and-objectcontextentityobjects, but we did not test this scenario and cannot tell if this will work with our product.
There are other articles about how to do a transition from ObjectContext to DbContext in Internet as well, we will be interested to hear from you if you find a solution.