Question

I have a SilverLight 5 solution with 2 projects by default. (MyProject & MyProject.Web)

I have decided to split projects to have a more readable solution.

I added MyProject.Controls and MyProject.BLL.

And now I would like to use classes from the Entity FrameWork of my MyProject.Web into MyProject.Controls or MyProject.BLL.

But when I try to add a reference to MyProject.Web , I get the error : "You can only add project references to other Silverlight projects in the solution".

How can I solve this so I can use the classes from the Entity Framework into all the projects in the solution ?

Thanks

Was it helpful?

Solution

It is not possible; Silverlight does not support Entity Framework libraries.

Silverlight applications can not connect to SQL server directly; you only have one option: Creating web services (or WCF) to expose you SQL server operations to Silverlight client.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top