The worked example in Joseph Chancellor's book 'Rapid C# Windows Development' which uses LLBLGen Pro to connect to the Adventure Works sample database.