Conclusion

In this chapter, we've created a basic Web Forms UI based on our business objects. As with the Windows Forms technology in Chapter 8, there are many ways to create a Web Forms interface, and the one we've created here is just one option among many. The key is that we've designed our business objects so that they automatically enforce all business rules and provide business processing so that the UI doesn't need to include any of that code. We've now created two very different user interfaces based on exactly the same set of business objects, data-access code, and database design.

As shown here, we configured the application for optimal performance, running the Session and the DataPortal in the same process as our Web Forms. We could increase scalability and fault tolerance by moving Session into its own process, or onto a state server. We could potentially increase security by running the DataPortal server on an application server behind a second firewall. In either case, all we need to do is change some settings in Web.config our UI code and business objects will work in all these scenarios.

In Chapter 10, we'll create another type of interface to our business objects by using web services.



Expert C# Business Objects
Expert C# 2008 Business Objects
ISBN: 1430210192
EAN: 2147483647
Year: 2006
Pages: 111

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net