为 Ria 服务添加客户端属性
我已将客户端属性添加到我的 ria 服务实体之一,但由于某种原因,它向我发出警告““....cs”中的类型“OLG.Entities.ViewList”与导入的类型“OLG”冲突 现在我明白了错误消息的含义,但
为什么它会发生冲突而不是合并类?
我的客户端部分类:
namespace OLG.Entities
{
public partial class ViewList : Entity
{
private bool _isSelected;
/// <summary>
/// This is used to add a client side property to the Ria Entity that will not be used on the model side (database)
/// </summary>
public bool IsSelected
{
get { return _isSelected; }
set {
if (_isSelected != value)
{
_isSelected = value;
this.RaisePropertyChanged("IsSelected");
}
}
}
}
附带说明,生成的类不在与新的部分类相同的 silverlight 项目
I've added a client side property to one of my ria services entities, but for some reason it's giving me the warning "the type "OLG.Entities.ViewList" in "....cs" conflicts with the imported type "OLG.Entities.ViewList" in "....dll"
Now I understand what the error message means, but why would it conflict instead of merging the class?
My Client Side Partial Class:
namespace OLG.Entities
{
public partial class ViewList : Entity
{
private bool _isSelected;
/// <summary>
/// This is used to add a client side property to the Ria Entity that will not be used on the model side (database)
/// </summary>
public bool IsSelected
{
get { return _isSelected; }
set {
if (_isSelected != value)
{
_isSelected = value;
this.RaisePropertyChanged("IsSelected");
}
}
}
}
As a side note the generated class is not in the same silverlight project as the new partial class
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正如此处所述:
所以,错误的原因实际上是
As mentioned here:
So, the cause of the error is in fact that