diff Agendas/trunk/src/Agendas.Web/Global.asax.cs @ 83:7e9ffde4022d

Implementando DataAnnotation desde recursos y por convención
author nelopauselli
date Tue, 24 May 2011 21:37:06 -0300
parents c8099df941bd
children ee4e699e4551
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.Web/Global.asax.cs	Tue May 24 19:31:10 2011 -0300
+++ b/Agendas/trunk/src/Agendas.Web/Global.asax.cs	Tue May 24 21:37:06 2011 -0300
@@ -2,6 +2,7 @@
 using System.Web.Routing;
 using AltNetHispano.Agendas.Domain;
 using AltNetHispano.Agendas.Factories;
+using AltNetHispano.Agendas.Resources.Properties;
 
 namespace AltNetHispano.Agendas.Web
 {
@@ -30,6 +31,8 @@
 
         protected void Application_Start()
         {
+			ModelMetadataProviders.Current = new ModelMetadataWithDefaultsProvider(new ModelMetadataLocalizable<DataAnnotationResources>());
+
             AreaRegistration.RegisterAllAreas();
 
             RegisterGlobalFilters(GlobalFilters.Filters);