I just wanted to add that in my case the connection string is not automatically picked up from the .config file. But, if I replace the database names in the generated class with a blank string, the connection string is picked up from the file.
For eg. if I convert this,
base.AddElementMapping( "AdminUserEntity", "ILAP_Dev_2.1", @"dbo", "AdminUser", 14 );
to this,
base.AddElementMapping( "AdminUserEntity", "", @"dbo", "AdminUser", 14 );
, the connection string is picked up from the app.config file.
Thanks,
Glenn