I am trying to create a silverlight application. On the server side, I am attempting to create a WCF RIA Service using the latest ODP.Net provider and Entity Framework 5.0. I have created a simple ADO.NET Entity Data Model and have added a Domain Service that inherits from DbDomainService. Everything is fine with just one entity in my model but the moment I add a second entity with a relationship, the solution does not build and the proxy classes do not get generated on the client silverlight project. The obscure "Object reference not set to an instance of an object" in file Microsoft.Ria.Client.targets. Can I not use ODP.NET with the dbContext to generata RIA Service?
Edited by: user7828067 on Dec 3, 2012 3:28 PM
in our project we use NET Framework 4.0, WCF RIA Services 1.0 SP2, ODAC 11.2 Release 4, EntityFramework 4.1 generating DbContext based classes (DB first not class first) and it works
having said that,
I think I read somewhere that WCF RIA Services 1.0 SP2 and DbContext are only supported with EntityFramework 4.1
Wow - you are right! I tried it with EF 4.1 and it works. Thank you so much for the information as I just wasn't getting the right "google hit" on the compatibility with RIA services. I'm disappointed I can't use EF 5.0 and enums, though.