in

Fort Worth .NET Users Group

Browse by Tags

  • Deleting all records in all tables in the entire database using NHibernate

    This is a great little code snippet I thought I'd share. Before each one of my NUnit or NBehave tests, I clear out all the records from the database using NHibernate. Unfortunately, NHibernate's HQL doesn't seem to do cascade deletes, so you have to delete your tables in the right order....
    Posted to Dot Net Tricks (Weblog) by Anonymous on 01-19-2010
  • ASP.NET MVC - Multiple buttons on a single form.

    I haven't posted in a while do to being busy with my new job, but I thought I'd just share this code snippet. In the new asp.net mvc framework, you often have the need for a single form, but multiple buttons that each post to a different controller action. In webforms you didn't have to worry...
    Posted to Dot Net Tricks (Weblog) by Anonymous on 05-06-2009
  • Giving up on the community

    I know nobody reads my blog anyway, but I still feel the need to comment (rant) to the blogosphere. The back story goes like this. Joel Spoelsky said some pretty irresponsible things in an interview, calling SOLID principles bureaucratic and saying "(code) quality doesn't matter." Jeff...
    Posted to Dot Net Tricks (Weblog) by Anonymous on 02-14-2009
  • Introducing SNARF

    I'm now part of two open source project, although this one I really want to be hands off. So if anyone is interested in taking it over, feel free. Here's a description from google code: SNARF (Simple, Nhibernate, ActiveRecord Framework) This is a C# .NET class library and set of Codesmith templates...
    Posted to Dot Net Tricks (Weblog) by Anonymous on 02-02-2009
  • I'm part of an open source project!

    I'm contributing to the Wilson O/R Mapper project which is now open source and on google code. I'm adding fluent mappings for WORM in the same manner as Fluent NHibernate. Exciting stuff! http://code.google.com/p/wilsonormapper/source/browse/#svn/branches/FluentMappings/Wilson.ORMapper/FluentMappings
    Posted to Dot Net Tricks (Weblog) by Anonymous on 01-07-2009
  • Found some good code today

    I'm hoping this won't offend any of you out there, but most of us developers write crappy code. I'm not fully sure why this is, but even if the database isn't a steaming pile of horse poo, the code usually is. There's often a lot of code duplication, methods and property names that...
    Posted to Dot Net Tricks (Weblog) by Anonymous on 12-21-2008
  • Die Code-Behind DIE!!!

    As mentioned in previous episodes, my team is standardizing on the ASP.NET MVC Framework for web development. One thorn in our sides has been that by default, Visual Studio would create a code-behind for your views automatically, and if you wanted a view that used a strongly typed model, such as ViewPage<Person>...
    Posted to Dot Net Tricks (Weblog) by Anonymous on 12-19-2008
  • For the love of God, Normalize you databases!

    Despite that stupid presentation about "normalization is for sissies" that went around the net for a while, I'm very pro-normalization. Normalization and the standard Third Normal Form (3nf) simplify data management and application development greatly. This is especially true when writing...
    Posted to Dot Net Tricks (Weblog) by Anonymous on 12-12-2008
  • TDD + Resharper Payoff - Refactoring

    So the project i mentioned the other day in my last post has had minimal need for refactoring. Part of that is because I'm such a super badass developer who always gets things right the first time (yeah right), and part of it is that the project is small enough and young enough that there isn't...
    Posted to Dot Net Tricks (Weblog) by Anonymous on 12-11-2008
  • My current architecture

    For the six or seven of you in the world that actually read my blog, you've noticed that i've been pretty quiet lately. So while i'm chomping down breakfast before work, I thought I'd give you a rundown on what i've been doing lately. I'm working on a medium size project that...
    Posted to Dot Net Tricks (Weblog) by Anonymous on 12-10-2008
Page 1 of 2 (18 items) 1 2 Next >
Copyright FWDNUG 2008
Powered by Community Server (Commercial Edition), by Telligent Systems