How to make Class for DataObjectAttribute visible in ObjectDataSourse in Web Application
- by nCdy
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