castle-monorail

Service Layers and Repositories

不打扰是莪最后的温柔 提交于 2019-12-03 00:10:37
问题 I've been using MVC frameworks for a short while now and I really like how the concerns are separated out. I've got into a bad habit of letting the controllers do quite a bit of work. So I'm really looking for some advice. When I first started using MVC I quite often had the controller doing manipulation on the models after database work had been done. I knew this was bad so moved that work into the models. However I'm not happy with that as I want my models to be very learn. I've done a bit

Asp.Net MVC vs Castle MonoRail

五迷三道 提交于 2019-12-02 16:39:20
I've some experiences on build application with Asp.Net, but now MVC frameworks become more popular. I would like to try building new multilingual web application using with Asp.Net MVC or Castle MonoRail but I don't know which one is good for me. I don't like the web form view engine, but I like routing feature in Asp.Net MVC. Could anyone tells about pros and cons between those? Which ViewEngine is the better as well for overriding the master template? Speaking as an advocate of monorail, I've got to say you should probably go for ASP.NET MVC. To be honest, the simple fact that ASP.NET MVC

Service Layers and Repositories

本秂侑毒 提交于 2019-12-02 13:54:27
I've been using MVC frameworks for a short while now and I really like how the concerns are separated out. I've got into a bad habit of letting the controllers do quite a bit of work. So I'm really looking for some advice. When I first started using MVC I quite often had the controller doing manipulation on the models after database work had been done. I knew this was bad so moved that work into the models. However I'm not happy with that as I want my models to be very learn. I've done a bit of reading and I see that people are keeping their controllers and models lean by having a service

How to set different Timeouts for different URLs in ASP.NET

 ̄綄美尐妖づ 提交于 2019-11-28 20:33:40
I want different connection limits for some URLs in my application. Some URLs accept file uploads and need to have a large Connection Timeout. All other URLs need a much smaller timeout to prevent denial of service and not waste resources. Currently I have the Connection Timeout property in IIS set for the entire site to 60 minutes. Then I did this in the web.config: <system.web> <httpRuntime executionTimeout="480" maxRequestLength="1024" /> </system.web> <location path="FileUpload/WriteFile.rails"> <system.web> <httpRuntime executionTimeout="3600" maxRequestLength="512000" /> </system.web> <

How to set different Timeouts for different URLs in ASP.NET

天大地大妈咪最大 提交于 2019-11-27 12:59:10
问题 I want different connection limits for some URLs in my application. Some URLs accept file uploads and need to have a large Connection Timeout. All other URLs need a much smaller timeout to prevent denial of service and not waste resources. Currently I have the Connection Timeout property in IIS set for the entire site to 60 minutes. Then I did this in the web.config: <system.web> <httpRuntime executionTimeout="480" maxRequestLength="1024" /> </system.web> <location path="FileUpload/WriteFile