1

The Most Useful .NET Utility Classes Developers Tend To Reinvent Rather Than Reuse

Posted by Sameer on August 7, 2009 in Programming |

I think this is a classic post that everyone should read: The Most Useful .NET Utility Classes Developers Tend To Reinvent Rather Than Reuse

5

Annoying Nulls in SQLParameters

Posted by Sameer on August 7, 2009 in Programming |

If you read Creating SqlParameters Best Practices you will find the fun you have if you have null values: SqlParameter[] sqlParams = new SqlParameter[] { new SqlParameter("@Required", required), questionCode == null ? new SqlParameter("@Code", DBNull.Value) : new SqlParameter("@Code", questionCode) }; Here is a nice helper function to deal with nulls without having to manually check […]

Copyright © 2007-2014 Agile Chai All rights reserved.
This site is using the Desk Mess Mirrored theme, v2.0.2, from BuyNowShop.com.