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;
精彩评论