Boas práticas com

1,774 views

Published on

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Boas práticas com

  1. 1. Rodolfo Fadino@rodolfofadino
  2. 2. Sobre
  3. 3. Agenda Controllers Validation Cache Views
  4. 4. Controllers IoC Container
  5. 5. Controllers IoC Container  Unity  CastleWindsor  StructureMap  Spring.NET  Ninject  Autofac
  6. 6. Controllers Demo
  7. 7. Validation Data Annotation Pode ser configurada no web.config Compare Attribute Remote Attribute AllowHml Model Validation via IValidatableObject
  8. 8. Validation Demo
  9. 9. Cache Output Cache Cache Profile
  10. 10. Cache Demo
  11. 11. Views Razor No “magic strings”: use strongly-typed view ViewModel != DomainModel Evite lazy load
  12. 12. Views Demo
  13. 13. Links http://tecnologia.minhavida.com.br/ http://structuremap.net/structuremap/ http://www.asp.net/mvc/mvc3 http://rodolfofadino.com.br/

×