开发者

What attribute combo qualifies a class as a Data Component for ASP.NET?

When I use the wizard to configure an ObjectDataSource control, it presents a list of candiate business objects. This is of course quite long in even a small project, but it can be filete开发者_开发技巧rd to only show Data Components.

How can I decorate my service classes so that only they appear in this list when I filter it to "Show only data components"?


You will need to decorate it with the

[DataObjectAttribute]

and add the following using statement

using System.ComponentModel;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜