예제 #1
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();

            WebApiConfig.Register(GlobalConfiguration.Configuration);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
            AuthConfig.RegisterAuth();
            AuthenticationFactory.SetCurrent(new FormsAuthenticationFactory());
            DataAnnotationsModelValidatorProvider.AddImplicitRequiredAttributeForValueTypes = false;

            ModelBinders.Binders.DefaultBinder = new DevExpress.Web.Mvc.DevExpressEditorsBinder();
        }
예제 #2
0
 public static void Initialise()
 {
     // LoggerFactory.SetCurrent(new TraceSourceLogFactory());
     AuthenticationFactory.SetCurrent(new FormsAuthenticationFactory());
 }
 public static void Initialise()
 {
     AuthenticationFactory.SetCurrent(new FormsAuthenticationFactory());
 }