We ran into a funny thing today with the generated code. We have 2 databases, with exactly the same structure, just a different name. When you change the Main.ConnectionString from the old name to the new one, the code will still connect to the old database, because the database name is hardcoded into the PersistenceInfoProviderCore class. Is this by design? I can imagine that if people want to change their database name, (after development or something) they wouldn't want to go and do a full regenerate with a NEW LLBLGen project...
P.S. this is in the 2.0 version, in the latest .NET runtime, with SelfServicing templates.
Example:
private void InitMyEntityMappings()
{
base.AddElementMapping( "MyEntity", "DBName", @"dbo", "TableName", 5 );
......
}