Lance's Whiteboard

Random scribbling about C#, ASP.NET, Sql Reporting, etc.

News

BlogMailr Enabled




Sponsored Ad
Sponsored Ad

Blogs I Read

Developer Sites

Googling, etc...

MSDN Resources

Tutorials & Reference

Browse by Tags

All Tags » C# (RSS)
FW: Batch Updates and Deletes with LINQ to SQL
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...
Posted: Jun 23 2008, 06:07 PM by CodeSniper | with no comments
Filed under: , ,
Minimum & Maximum Dates in code
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...
Try/Catch annoyances
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...
Posted: Jan 15 2007, 05:16 PM by CodeSniper | with 12 comment(s)
Filed under:
Codesmith Exception Template updated
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.
Codesmith Exception Template v1.3
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...
ANN: ASP.NET Provider Framework Item Template
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...
Update: C# Coding Standards v1.13
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...
Update: C# Coding Standards v1.09
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