I still can't reproduce it. This is what I did:
-
Since you rename things on the generated code, I uses your project to re-generate code (with the latest v2.5 build). I confirmed that the alias for the line you change is RangeEntity__.
-
Note that your llblgen project doesn't have any ActionProcedures, however you have a call to that in your manager classes: RangeManager.GetRangeSorted. So I commented that method.
-
Fix the references so they point to LLBLGen v2.5 assemblies.
-
Since the catalog at generated code is "caroma.devdorf" and our catalog at db is caromalive2012, I used catalog name overwrites (more info about that... in the web.config:
...
<configSections>
<section name="sqlServerCatalogNameOverwrites" type="System.Configuration.NameValueSectionHandler" />
...
</configSections>
<appSettings/>
<sqlServerCatalogNameOverwrites>
<add key="caroma.devdorf" value="caromalive2012" />
</sqlServerCatalogNameOverwrites>
<connectionStrings>
<clear/>
<add name="Main.ConnectionString" connectionString="Persist Security Info=False;Integrated Security=SSPI;database=caromalive2012;server=.;Current Language=English;Connection Timeout=240;"/>
</connectionStrings>
...
- Run the app. Everything works.
So, as I see, the problem could be one (or more) of these:
a. Something went wrong when you find-replace for the catalog on the generated code. Don't do that, instead use Catalog Name Overwrites (see point 4 above).
b. Maybe you are not using the correct LLBLGen project to generate code. I think that because of the missing ActionProcedures (see point 2). Please double check that.
c. Maybe it's the database. You didn't post your DDL script so I used a DDL generated from your LLBLGen project, but it may be that your actual DB has something wrong. Double check that you have the right LLBLGen Project and that you refreshed catalog from the real DB. I know you said that two DBs are the same, but after all these tests, it might be that they aren't.
Please try my exact steps using the LLBLGen project you posted and the repro solution you gave us, it should work.