高手请献身, 关于实体发布wcf数据库服务的问题

ywl102402 2010-11-02 03:26:47
/// <summary>
/// 属性值集合(JSON格式)
/// </summary>
[DescriptionAttribute("属性值集合")]
[CategoryAttribute("非查询")]
[Property(Type = "StringClob")]
[Column(1, SqlType = "text", Name = "attributes")]

public String Attributes
{
get;
set;
}

上边是一实体的属性,发布WCF 数据服务, 用客户端更新下来的
References.cs 里面变成

[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Services.Design", "1.0.0")]
public string Attributes
{
get
{
return this._Attributes;
}
set
{
this.OnAttributesChanging(value);
this._Attributes = value;
this.OnAttributesChanged();
this.OnPropertyChanged("Attributes");
}
}

问题是:有办法把属性里的 [DescriptionAttribute("属性值集合")]
也发布出去, 让客户端能访问的到吗?
...全文
96 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
宝_爸 2010-11-03
  • 打赏
  • 举报
回复
估计只能你自己写代码了。

soap message中参数的描述是像这样的

<xs:element minOccurs="0" name="FirstName" nillable="true" type="xs:string" />

而xs:element可用的属性中没有类似description的东西。
参考:http://www.w3schools.com/schema/el_element.asp
ywl102402 2010-11-03
  • 打赏
  • 举报
回复
为啥会无关呢?
  • 打赏
  • 举报
回复
你要求与wcf无关,根本排不上日程。
ywl102402 2010-11-03
  • 打赏
  • 举报
回复
nobody nobody but ...

12,162

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 Web Services
社区管理员
  • Web Services社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧