Check out this project in codeplex .
SQL Server Library and SQL Azure Shard
This library provides a splinter of technology that allows you to distribute database query loading to multiple databases easily (SQL Server and SQL Azure). Uses a parallel task library (TPL) and caching for high performance.
source
share