This little extension method is something I wrote to help cleanup domain context code… just thought I would share:
Enjoy!
This little extension method is something I wrote to help cleanup domain context code… just thought I would share:
Enjoy!
I’ve been using T4MVC for quite some time now, but I’ve just discovered a wonderful feature: the ability to generate absolute URLs using the standard T4MVC strongly typed helpers. It’s extremely simple, compared to doing it the manual way. If you have a controller named AccountController with an action called Login, the following line will return a string with the absolute URL to the login page:
Url.ActionAbsolute(MVC.Account.Login())
I love it!
I was working on a Silverlight 4 project with a coworker a few days ago and needed to display a list of objects with different editors based on the type of object. The first thing that came to my mind was to use a DataTemplateSelector. I found out quickly that the Silverlight team – for whatever reason – decided they didn’t want to include a DataTemplateSelector. Frustrated, we turned to Google and found a blog post by Mike Gold that was basically exactly what we needed. I made a few modifications to how he implemented this solution (which I think make it simpler), so I’m posting it here in case it might help someone else.
Pure Line theme by Theme4Press • Powered by WordPress Max Schmeling A software development and technology blog from the Midwest.