Mercurial > altnet-hispano
comparison Agendas/trunk/src/Agendas.Web/Global.asax.cs @ 67:c8099df941bd
Implementando persistencia con NHibernate en el proyecto web
author | nelopauselli |
---|---|
date | Thu, 19 May 2011 01:24:56 -0300 |
parents | 3ebe89c88caa |
children | 7e9ffde4022d |
comparison
equal
deleted
inserted
replaced
64:240a20cdbcc8 | 67:c8099df941bd |
---|---|
11 public class MvcApplication : System.Web.HttpApplication | 11 public class MvcApplication : System.Web.HttpApplication |
12 { | 12 { |
13 public static void RegisterGlobalFilters(GlobalFilterCollection filters) | 13 public static void RegisterGlobalFilters(GlobalFilterCollection filters) |
14 { | 14 { |
15 filters.Add(new HandleErrorAttribute()); | 15 filters.Add(new HandleErrorAttribute()); |
16 filters.Add(AttributeFactory.GetNHibernateSessionPerAction()); | |
16 } | 17 } |
17 | 18 |
18 public static void RegisterRoutes(RouteCollection routes) | 19 public static void RegisterRoutes(RouteCollection routes) |
19 { | 20 { |
20 routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); | 21 routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); |