Building Web Applications

You can use LightSpeed in both ASP.NET Web Forms and ASP.NET MVC web applications allowing you to develop in terms of your domain model and allow LightSpeed to manage the data access. Developing with LightSpeed in the context of a web application is largely the same as any other type of application; however the key point of difference is around the way in which you will want to scope your UnitOfWork.

For web applications you will be concerned with scoping your UnitOfWork on a per request basis and how to perform data access within your code behind or controller code. This chapter will highlight how to cover both of these concerns in the context of both ASP.NET Web Forms and ASP.NET MVC applications. Additionally if you are deploying into a medium trust environment (this is often the case with shared hosting providers) then you will want to review the section detailing specific changes you will need to make to your LightSpeed configuration and designer settings to support medium trust scenarios.

Building ASP.NET Web Forms Applications

Building ASP.NET MVC Applications

Running LightSpeed in Medium Trust

ASP.NET Dynamic Data