开发者

ObjectDataSource typename of a singleton Business object

How do I make ObjectDataSource work with singleton Business object?

My singleton business object is defined in Global:

pub开发者_如何学Golic class Global : HttpApplication
{
        public static BusinessForm BusinessFormLayer;            

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

My page:

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜