add reference to Silverlight project from other non silverlight project

前端 未结 1 664
情书的邮戳
情书的邮戳 2021-01-15 04:49

I have Silverlight application using NHibernate as a ORM. I have projects for Data(mapp and entities), data access and Silverlight. I want to add to SL project reference to

相关标签:
1条回答
  • 2021-01-15 05:21

    Yes, you can expose your data access assembly as a bunch of WCF services and then call them from the SL application.

    There is also another way - make a Silverlight class library, and then add new linked files to it - those linked files being the class files from your data access assembly.

    Here is a previous answer that explains the linking, although you should note that because your data access classes will now being using the Silverlight runtime you may not have access to all the System namespaces that you want (although you can pick and choose what files you want to add to the new project, and refactor the ones that don't work because of this).

    0 讨论(0)
提交回复
热议问题