【发布时间】:2011-03-30 09:43:33
【问题描述】:
我已将客户端属性添加到我的 ria 服务实体之一,但由于某种原因,它给了我警告““....cs”中的类型“OLG.Entities.ViewList”与导入的冲突在“....dll”中输入“OLG.Entities.ViewList”
现在我明白了错误消息的含义,但是为什么它会发生冲突而不是合并类呢?
我的客户端部分类:
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 项目中
【问题讨论】:
标签: c# silverlight wcf-ria-services