SingleData Business对象的ObjectDataSource类型名称

时间:2010-03-13 17:24:07

标签: asp.net

如何使ObjectDataSource与单例Business对象一起使用?

我的单件业务对象在Global中定义:

public class Global : HttpApplication
{
        public static BusinessForm BusinessFormLayer;            

        void Application_Start(object sender, EventArgs e)
        {                        
            FormDalProvider concreteProvider = FormDalProvider.Instance;
            BusinessForumLayer = new BusinessForum(concreteProvider);
        }
}

我的页面:

<asp:ObjectDataSource ID="objThreads" runat="server"                       
                      SelectMethod="GetForms"
                      SelectCountMethod="GetFormsCount"
                      TypeName="Global.BusinessFormLayer"
                      EnablePaging="true" 
                      SortParameterName="sortExpression">

0 个答案:

没有答案