"CSMetal" - Code generating/Linq Provider Sample on MSDN Code Gallery

"CSMetal" is a command line tool that reads Commerce Server 2009 metadata and generates a set of strongly-typed classes to use with Commerce Foundation API and a set of Linq providers to allow access to Commerce Server entities via Linq. It can dramatically simplify basic access to CS2009 functionality by enabling simple Linq-syntax queries against […]

"CSMetal" is a command line tool that reads Commerce Server 2009 metadata and generates a set of strongly-typed classes to use with Commerce Foundation API and a set of Linq providers to allow access to Commerce Server entities via Linq. It can dramatically simplify basic access to CS2009 functionality by enabling simple Linq-syntax queries against most CS entities.

Sample unit tests are included that demonstrate various access methods including a full checkout scenario. Also provided couple of sample apps, including a rewritten version of "Orders" sample that comes with CS, which demos the savings in overall code of using Linq based queries and even a sample ASP.NET MVC 3 (Razor) app.

Download: CSMetal

[Source]