How to make Class for DataObjectAttribute visible in ObjectDataSourse in Web Application

Posted by nCdy on Stack Overflow See other posts from Stack Overflow or by nCdy
Published on 2010-03-19T10:35:20Z Indexed on 2010/03/19 10:41 UTC
Read the original article Hit count: 411

here is a class code :

> [DataObjectAttribute] public class
> Report {    public this() {}
> 
>  
> [DataObjectMethodAttribute(DataObjectMethodType.Select,
> true)]   public static
> GetAllEmployees() : DataTable   {
>       null   }
> 
>  
> [DataObjectMethodAttribute(DataObjectMethodType.Delete,
> true)]   public
> DeleteEmployeeByID(employeeID : int) :
> void   {
>        throw Exception("The value passed to the delete method is " +
> employeeID.ToString());   } }

but I still can't find where and how and what I must to config to access it ?

  <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod=" ?????????? ">
  </asp:ObjectDataSource>

Web Application doesn't support App_Code so but I can use compiled Bin somehow, the question is how ?

text from this link only confused me more :(

thank you

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about .NET