将模型添加到 silverlight wcf ria 服务启用的应用程序

发布于 2024-09-11 07:04:51 字数 370 浏览 1 评论 0原文

我已经开始将 MVVm light2 框架用于启用 wcf ria 的 silverlight 4.0 应用程序。

我能够将一个名为“Models”的文件夹添加到托管 silverlight 应用程序的 ASP .Net 应用程序,我向此文件夹添加了一个类,并且我能够在我的 silverlight 应用程序中设置属性和所有内容,但是一旦我当我开始将更多此类类添加到我的 Models 文件夹中时,它们在我的 silverlight 应用程序中的任何位置都无法访问。

另外,在我的 MainViewModel.cs 中,智能感知没有显示新添加的类,我确保在我的 silvelight 应用程序中访问它们之前应用程序已构建,并且命名空间也是正确的。

我是否缺少设置属性或其他内容?

I have started using the MVVm light2 framework for the wcf ria enabled silverlight 4.0 application.

I was able to add a folder named "Models" to ASP .Net application that hosts the silverlight application, I added a class to this folder, and i am able to set the properties and all for this in my silverlight application, but once i started to add more such classes into my Models folders, they aren't getting accessible anywhere in my silverlight application.

Also in my MainViewModel.cs the intellisense is not showing the newly added class/classes , i made sure the application is build before i accessed them in my silvelight application, also the namespaces are correct.

Am I missing to set a property or something?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

许久 2024-09-18 07:04:51

我的团队中有人遇到了类似的问题。我记得它与 .cs 文件上的物理位置有关,这可能意味着命名空间已更改。

Someone on my team faced a similar problem. As I recall it had something to do with the physical location on the .cs files, which may imply that the namespace had changed.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文