Rick Strahl delivered another excellent white paper. In addition to his white papers, he has one of the most readable and intelligent blogs on the web. White paper: Past the AJAX Hype – some things to think about
Month: August 2005
C# 2.0 – Nullable types
Yesterday, S. Somasegar, Corporate Vice President, Developer Division (Microsoft) shared some fantastic news, in his blog, about a new language enhancement in C# 2.0. In addition to Generics, Anonymous Methods, Iterators, and Partial Types, we will now have nullable types. Also, more details on MSDN about nullable types
SqlDataAdapter.Fill() does not require SqlConnection Open() and Close()
I have read too many articles showing the connection being opened and closed around a DataAdapter Fill() as in the code below. It does no harm, but it not necessary. Don’t do this… SqlCommand command = new SqlCommand(“usp_MyQuery_Select”, this._con);SqlDataAdapter adapter = new SqlDataAdapter(command);DataSet ds = new DataSet();try{ this._con.Open(); //unnecessary adapter.Fill(ds);}finally{ …
Continue reading “SqlDataAdapter.Fill() does not require SqlConnection Open() and Close()”
VSDN Tips & Tricks .NET Coding Standards
Most developers cringe when they hear the words “Coding Standards.” A developers coding style defines them. Their style has been molded over the years into what it is today. Telling a developer that their way is not the “right way” is difficult and sometimes taken personally. Coding standards are, however, …