Browse by Tags
All Tags »
C# (
RSS)
I'm currently on a project creating a proprietary data-migration tool using C# & Linq. I'm still new to Linq, but quickly discovered the challenges of doing mass-updates and deletes with Linq. Specifically, by default Linq to Sql generates a...
When updating Sql columns that need a minimum or maximum date, consider using the defaults from the System.Data.SqlType namespace: 1: DateTime minDate = SqlDateTime.MinValue.Value 2: 3: // and 4: 5: DateTime maxDate = SqlDateTime.MaxValue...
The Try/Catch block is the source of many of my pet peeves, here is one of my favorite petty annoyances: Eating Exceptions: try { … do something meaningful } catch(SomeException ex ) { // eat exception } This is an example of a block that is intended...
James correctly points out that I omitted the variable declaration output when you specify custom arguments. This is fixed in version v1.4, which you can download now.
I just posted an update to my CodeSmith Exception Template with some minor changes to formatting, the integration of other features from other derived templates, and a drop-down selection of the HResult code to use. Click here to download...
Please check out my new ASP.NET Provider Framework Item Template VSI installer (C# only). This installer creates an entry on the "Add New Item" menu for the templates. When selected, you enter the Name (minus "provider" suffix) for...
You can now download version 1.13 of my C# Coding Standards for .NET . I havent posted on this topic for a while, so here is the change log since v1.09: 1.10 05/25/2004 Modified naming conventions for Internal and Protected identifiers. Added, modified...
After receiving a few emails requesting a rules-summary, I made some changes this weekend. Version 1.09 of the C# Coding Standards document is now available for download. I like the simplifying nature of the new “Quick Summary” section, but...
More Posts