static void

ADO.Net

Connection Strings

Tips

For inserting/updating nullable fields, I use this helper (here as a 3.5 extension method)

internal static class SqlParameterExtensions

{

    //nb instance methods always win over extension methods so you can't add a AddWithValue "overload"

 

    internal static SqlParameter AddWithNullableValue(this SqlParameterCollection col, string parameterName, object value)

    {

        //everything else

        return col.Add(new SqlParameter(parameterName, value ?? DBNull.Value));

    }

}

Concurrency

Transactions

Paging and Identity

Dataset Trivia