开发者

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

开发者 https://www.devze.com 2023-01-27 14:47 出处:网络
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开发者_开发技巧

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

精彩评论

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

关注公众号