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

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top