chinhdo

Stories submitted by chinhdo

Transactional File Operations in .NET (without TxF)(transactionalfilemgr.codeplex.com)

submitted by chinhdochinhdo(395) 1 year, 11 months ago

.NET Transactional File Manager (now an open source project on CodePlex) can effectively turn any file system into a transactional file system. Does not require Transaction NTFS (TxF). Supports file copy, move, delete, append, write, etc. read more...

add a comment |category: |Views: 124

tags: another

Wrap Unit Tests in Transactions(chinhdo.com)

submitted by chinhdochinhdo(395) 3 years, 3 months ago

The key to writing good unit tests that interact with the database is making sure that the data is in a known state before and after the test. System.Transactions makes this very easy. read more...

add a comment |category: |Views: 7

tags: another

Have Your File Operations Participate in Transactions Today(chinhdo.com)

submitted by chinhdochinhdo(395) 3 years, 8 months ago

By implementing IEnlistmentNotification, you can have your file operations (copy, delete, write, etc.) participate in transactions without requiring Transactional NTFS (TxF), which only works on Vista and Windows Server 2008. Working code included. read more...

add a comment |category: |Views: 24

tags: another

Put IDataRecord.GetOrdinal Method to Good Use(chinhdo.com)

submitted by chinhdochinhdo(395) 4 years, 3 months ago

IDataReader.GetOrdinal can help improve code maintainability with little cost. read more...

add a comment |category: |Views: 71

tags: another

Try/Catch Blocks Can Hurt Performance Significantly(chinhdo.com)

submitted by chinhdochinhdo(395) 4 years, 3 months ago

Over at Programmers Heaven.com, there’s an interesting article on the potential performance impact of try/catch blocks. The article concluded that the average cost of a try/catch block is essentially nothing (sorry there’s no author information on the post), and that .NET/C# programmers should not think twice about using try/catch blocks. The author is right that a try/catch block has essentially zero cost. However, like most coding performance issues, exceptions and try/catch blocks do not have performance implications until they occur in some type of loop. read more...

9 comments |category: |Views: 54

tags: another

How to Open Containing Explorer Folder in Visual Studio(chinhdo.com)

submitted by chinhdochinhdo(395) 4 years, 4 months ago

The command File.OpenContainingFolder allows you to create a shortcut to open the containing explorer folder for the current item in the editor. Works with Visual Studio 2005 and 2008. read more...

1 comment |category: |Views: 2

tags: another

My Silverlight 1.1 Hello World Application(chinhdo.com)

submitted by chinhdochinhdo(395) 4 years, 5 months ago

Imagine being able to author rich internet applications in your .NET language of choice, without having to mess with Javascript, cross-browser compatibility issues, or ActionScript. That’s the promise of Microsoft Silverlight 1.1. In this article, I will document my attempt at creating a Silverlight 1.1 “Hello World” application. My Hello World application is a little bit more fancy than the typical one… this one involves some animation, and drawing a few shapes from code. read more...

add a comment |category: |Views: 17

tags: another

Bulk Operations Using Oracle Data Provider for .NET (ODP.NET)(dotnetslackers.com)

submitted by chinhdochinhdo(395) 4 years, 6 months ago

n a typical multi-tier application, one of the biggest performance bottlenecks is the overhead of making round-trips to the database. Minimizing these round-trips is often the first area you should look at during performance tuning. Fortunately, the Oracle Data Provider for .NET (ODP.NET) makes it fairly easy to do this by providing several built-in methods to write and read data in bulk. read more...

add a comment |category: |Views: 75

tags: another

StringBuilder is not always faster - Part 2(chinhdo.com)

submitted by chinhdochinhdo(395) 4 years, 7 months ago

n a previous article (”StringBuilder is not always faster), I provided some quick benchmark data and gave “rules of thumb” for when to use StringBuilder and when to use traditional string concatenations. In this follow-up article, I will attempt to provide a more detailed analysis. read more...

3 comments |category: |Views: 9

tags: another

StringBuilder is not always faster(chinhdo.com)

submitted by chinhdochinhdo(395) 4 years, 8 months ago

Here is something you may not know about string concatenation: StringBuilder is not always faster. read more...

6 comments |category: |Views: 13

tags: another