sql metal

SqlMetal is a command line generator that builds the OR types used by LINQ to SQL. It reverse engineers a given database.