MS Mvc

Posts about the Microsoft Mvc framework

Lazy list

I have been following Rob Conery's posts on the MVC Storefront, and trying the repository/pipes-filters for data access that he has been using. While trying out the implementation of a LazyList he was using, I had noticed that the example table was being joined onto the category table. At the time however, I really had not thought much of it, until I read MVC Storefront: Brainbender Intermission which got me thinking. Admittedly, I don't really have to much of a problem with it loading all of the examples for all the categories at one time at the moment. However,...

ABCs scare me

I had a whole post about this, in my mind, but as I was typing, I kept poking holes in my points as to why I hope that in the end IHttpContext stays around. However, since am trying get into the habit of actually sleeping at night I'm just going to put a couple of sentences in. In Abstract Base Classes Have Versioning Problems Too Haacked gave an example that of a problem with ABCs, that at some point later a virtual method would be added, and throw a not implemented exception. This in itself seems to be a breaking...

Got my nice Urls working

Its amazing how fast things can be done when not fighting bad assumptions. In this case it was that my admin URLs needed to use the nice descriptive URLs, instead of just /[Controller]/[Action]/[id] type routing. Once I realized I was making things overly complicated I, I ended up with a set of routing functions that are actually a bit less complicated then what I would have come up with if I had been able to extend the RouteTable the way I had planned originally. I also decided that I didn't like the idea of having the make every category and...

Temp service provider implementation

Well, Bill Pierce in his post about making the HttpContext wrapper use the application as a service provider got me to a good enough solution for the script service I had wanted in my previous post. While not quite as clean as adding it to the HttpContext, I think an extension method on HttpApplication like this will work well for now. public static object GetService(this HttpApplication application,Type service) { IServiceProvider provider = application as IServiceProvider; if (provider == null) return null; return provider.GetService(service); } Then add/implement the IServiceProvider...

Copyright © Sean Lynch

Design by Bartosz Brzezinski

Design by Phil Haack Based On A Design By Bartosz Brzezinski