Articles : Page 7 of 12

  • Building a Nuget Server with gold plating

    Building a Nuget Server with gold plating

    Apr 11
    05

    Last week, Phil Haack wrote a post on how to build a NuGet Server. A NuGet server is really easy to build because 90% of the work is done by running a NuGet command. Just for fun, I decided to add some extra functionality to my NuGet Server such as a package upload form and a formatted list of packages. In preparing my NuGet server, I followed Phil’s direction to a tee except for the fact that I used a “empty MVC 3 app with Razor support” instead of using a “ASP.NET Empty Web Application”. ...


  • Modifying the default code generation/scaffolding templates in ASP.NET MVC

    Modifying the default code generation/scaffolding templates in ASP.NET MVC

    Mar 11
    28

    One of the things people like the most about my ASP.NE MVC 2 Ninja Black Belt Tips video, besides the Bill Cosby sweater, is the tip where I show how to modify the default CodeTemplates that are used in Code Generation in ASP.NET MVC (either version). Eilon mentioned it on an internal mailing list this week so I thought it'd be worth surfacing again in case you haven't heard of this, Dear Reader. Soon, we'll see even more powerful, flexible, and fun ways to customize your own Scaffolding ...


  • Modifying the default code generation/scaffolding templates in ASP.NET MVC

    Modifying the default code generation/scaffolding templates in ASP.NET MVC

    Mar 11
    28

    One of the things people like the most about my ASP.NE MVC 2 Ninja Black Belt Tips video, besides the Bill Cosby sweater, is the tip where I show how to modify the default CodeTemplates that are used in Code Generation in ASP.NET MVC (either version). Eilon mentioned it on an internal mailing list this week so I thought it'd be worth surfacing again in case you haven't heard of this, Dear Reader. Soon, we'll see even more powerful, flexible, and fun ways to customize your own Scaffolding ...


  • Using ActionFilters with ASP.NET MVC and NHibernate

    Using ActionFilters with ASP.NET MVC and NHibernate

    Mar 11
    22

    I like a challenge. My last post was how to effectively wire up data operations in an effort to get the EntityFramework machinery out of your Controller. I think people were a bit confused. On a bit of a personal note: this isn’t my first time doing this. I understand Dependency Injection, and I understand the need for IoC and Common Service Locator. I didn’t always understand these things - so I took it upon myself to try and learn them. One thing that drives me nuts about the .NET commun...


  • Using ActionFilters with ASP.NET MVC and NHibernate

    Using ActionFilters with ASP.NET MVC and NHibernate

    Mar 11
    22

    I like a challenge. My last post was how to effectively wire up data operations in an effort to get the EntityFramework machinery out of your Controller. I think people were a bit confused. On a bit of a personal note: this isn’t my first time doing this. I understand Dependency Injection, and I understand the need for IoC and Common Service Locator. I didn’t always understand these things - so I took it upon myself to try and learn them. One thing that drives me nuts about the .NET commun...


  • Using EntityFramework with ASP.NET MVC 3

    Using EntityFramework with ASP.NET MVC 3

    Mar 11
    21

    A few people have asked about a comment I made on my last post: I might suggest (in this case) creating an ActionFilter and wrapping the Action in a transaction. It’s transparent, it’s fun… and all the kids are doing it. … and it got me thinking. All of the MSDN samples that I’ve seen which talk about using EF or LinqToSql with ASP.NET MVC almost always show the context being created inside an action or being passed in via a repository. This doesn’t have to be the case - in fact it probabl...


  • Using EntityFramework with ASP.NET MVC 3

    Using EntityFramework with ASP.NET MVC 3

    Mar 11
    21

    A few people have asked about a comment I made on my last post: I might suggest (in this case) creating an ActionFilter and wrapping the Action in a transaction. It’s transparent, it’s fun… and all the kids are doing it. … and it got me thinking. All of the MSDN samples that I’ve seen which talk about using EF or LinqToSql with ASP.NET MVC almost always show the context being created inside an action or being passed in via a repository. This doesn’t have to be the case - in fact it probably...


  • Being Constructive

    Being Constructive

    Mar 11
    19

    I want to like Entity Framework. I did a whole screencast series on the thing and to be honest, I grew to like it. It’s very capable and if you play along with it’s rules can save you a lot of work. This post isn’t about EF. It’s about an MSDN post that was put up that I just linked to - and I thought about it afterward and … well I could probably be a bit more constructive. It’s late, I’ve had a beer or 2, and I was a bit quick to hit publish. The thing that pushed me over a bit was this ...


  • Being Constructive

    Being Constructive

    Mar 11
    19

    I want to like Entity Framework. I did a whole screencast series on the thing and to be honest, I grew to like it. It’s very capable and if you play along with it’s rules can save you a lot of work. This post isn’t about EF. It’s about an MSDN post that was put up that I just linked to - and I thought about it afterward and … well I could probably be a bit more constructive. It’s late, I’ve had a beer or 2, and I was a bit quick to hit publish. The thing that pushed me over a bit was this ...


  • Model Binding Decimal Values

    Model Binding Decimal Values

    Mar 11
    19

    I’m in the beautiful country of Brazil right now (I’ll hopefully blog more about that later) proctoring for the hands-on labs that’s part of the Web Camps agenda. However, the folks here are keeping me on my toes asking me to give impromptu and deeply advanced demos. It almost feels like a form of performance art as I create brand new demos on the fly. During this time, several people reported issues binding to a decimal value that prompted me to write a new demo and this blog post. Let...