Scheme name overwrite

Posts   
 
    
shekar
User
Posts: 327
Joined: 26-Mar-2010
# Posted on: 04-Jun-2012 14:02:50   

LLBLGen version 3.5 .Net Framework 4.0 Sql Server 2005 C# Windows application LLBLGen Run time framework

Dear team,

I developed few screens with my DBName as "LLBLGEN". Now I need to continue development with DBName "MASTER".

I changed the following lines in app.config to match my current DB

<appSettings>
        <add key="ConnectionString.SQL Server (SqlClient)" value="data source=soft-developer;initial catalog=master;User ID=sa;Password=shetty;persist security info=False;packet size=4096"/>
    </appSettings>

 <!--<sqlServerSchemaNameOverwrites>
    <add key="catholicclub" value="soft-developer" />
  </sqlServerSchemaNameOverwrites>-->

 </configSections>
  <sqlServerSchemaNameOverwrites>
    <add key="dbo" value="master" />
  </sqlServerSchemaNameOverwrites>
</configuration>

I get error when i try to save - The type initializer for 'SD.LLBLGen.Pro.ORMSupportClasses.EntityCore`1' threw an exception.

Stack trace is as follows

at SD.LLBLGen.Pro.ORMSupportClasses.EntityCore`1..ctor(Boolean

performsPersistenceLogic, String name) in c:\Myprojects\VS.NET Projects\LLBLGen Pro v3.5\Frameworks\LLBLGen Pro\RuntimeLibraries\ORMSupportClasses\Core\EntityCore.cs:line 259
   at SD.LLBLGen.Pro.ORMSupportClasses.EntityBase..ctor(String name) in c:\Myprojects\VS.NET Projects\LLBLGen Pro v3.5\Frameworks\LLBLGen Pro\RuntimeLibraries\ORMSupportClasses\SelfServicingSpecific\EntityBase.cs:line 87
   at DataBaseTier.EntityClasses.CommonEntityBase..ctor(String name) in D:\New Project\Project\ClubERP\DataBaseTier\EntityClasses\CommonEntityBase.cs:line 45
   at DataBaseTier.EntityClasses.TitleEntity..ctor() in D:\New Project\Project\ClubERP\DataBaseTier\EntityClasses\TitleEntity.cs:line 65
   at UserInterfaceTier.MasterTitle.SaveData() in D:\New Project\Project\ClubERP\UserInterfaceTier\FrmMasterTitle.cs:line 62
Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 04-Jun-2012 19:35:44   
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39910
Joined: 17-Aug-2003
# Posted on: 05-Jun-2012 10:02:03   

Also, you don't store your tables in the catalog 'Master' that's the system catalog of sql server.

Frans Bouma | Lead developer LLBLGen Pro
shekar
User
Posts: 327
Joined: 26-Mar-2010
# Posted on: 05-Jun-2012 10:16:55   

Otis wrote:

Also, you don't store your tables in the catalog 'Master' that's the system catalog of sql server.

OK