Mercurial > altnet-hispano
comparison Agendas/trunk/src/Agendas.Factories/AttributeFactory.cs @ 67:c8099df941bd
Implementando persistencia con NHibernate en el proyecto web
author | nelopauselli |
---|---|
date | Thu, 19 May 2011 01:24:56 -0300 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
64:240a20cdbcc8 | 67:c8099df941bd |
---|---|
1 using System.Web.Mvc; | |
2 using Agendas.NHibernate; | |
3 | |
4 namespace AltNetHispano.Agendas.Factories | |
5 { | |
6 public class AttributeFactory | |
7 { | |
8 public static ActionFilterAttribute GetNHibernateSessionPerAction() | |
9 { | |
10 return new NHibernateSessionPerActionAttribute(NhHelper.GetSessionFactory()); | |
11 } | |
12 } | |
13 } |