Open RIA Services User Support Upgrade EF 5 to 6 ObjectContext to dbContext + Migratioin to OpenRiaServices  Viewed 5160 time(s), 2 post(s)., 11/13/2015 3:09:22 PM - by timfra

timfra
timfra 11/16/2015 2:25:38 PM

Had to derive from DbDomainService instead of LinqToEntitiesDomainService in the class definition.

This content has not been rated yet. 
25 Reputation 3 Total posts
1
timfra
timfra 11/13/2015 3:09:23 PM

As I upgraded my EntityFramework from EF 5 with Legacy ObjectContext to EF 6 with T4, I'm also forced change to OpenRIAService. So far I followed the Blog post of http://www.openriaservices.net/blog/post/The-Open-RIA-Services-Blog/1017/Porting-from-WCF-RIA-Services-to-Open-RIA-Services/

Unfortunately, I'm having a problem in all of my DomainServices. Here is the Error Message in German Der Typ 'DatabaseModel.MyEntities' kann nicht als Typparameter 'TContext' im generischen Typ oder in der generischen Methode 'OpenRiaServices.DomainServices.EntityFramework.LinqToEntitiesDomainService' verwendet werden. Es ist keine implizite Verweiskonvertierung von 'DatabaseModel.MyEntities' in 'System.Data.Entity.Core.Objects.ObjectContext' vorhanden.

Here is my translation to english The type 'DatabaseModel.MyEntities' can not be used as type parameter 'TContext' in the generic type or method 'OpenRiaServices.DomainServices.EntityFramework.LinqToEntitiesDomainService'. There exist no implicit conversion from 'DatabaseModel.MyEntities' in 'System.Data.Entity.Core.Objects.ObjectContext'.

Seems like it wanted to have ObjectContext which I cant use anymore because using T4 Templates in the Entity Framework Model. maybe you have an idea?

Kind Regards

</td>

This content has not been rated yet. 
25 Reputation 3 Total posts
2