문제

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