开发者

ObjectDataSource typename of a singleton Business object

开发者 https://www.devze.com 2022-12-23 00:24 出处:网络
How do I make ObjectDataSource work with singleton Business object? My singleton business object is defined in Global:

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

上一篇:

:下一篇

精彩评论

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