ObjectDataSource typename of a singleton Business object
Posted
by luppi
on Stack Overflow
See other posts from Stack Overflow
or by luppi
Published on 2010-03-13T17:24:07Z
Indexed on
2010/03/13
17:25 UTC
Read the original article
Hit count: 371
ASP.NET
My singleton business object is defined in Global:
public 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">
© Stack Overflow or respective owner