Home
Help
Register
Log in

Search

 
   Active Threads  

You are here: Home > LLBLGen Pro > Architecture> Configuration through code
 

Pages: 1
Architecture
Configuration through code
Page:1/1 

  Print all messages in this thread  
Poster Message
yowl
User



Location:
Colombia
Joined on:
11-Feb-2008 10:35:17
Posted:
169 posts
# Posted on: 14-Sep-2017 16:58:08.  
hi,

I am sharing some projects between old style Asp.Net and AspNetCore (.net Framework, not .Net Core). Without a web.config in AspNetCore I want to configure in code and set

Code:
<sqlServerCatalogNameOverwrites>
    <add key="OldNameCatalog1" value="NewNameCatalog1" />
    <add key="OldNameCatalog2" value="NewNameCatalog2" />
</sqlServerCatalogNameOverwrites>


How do I do that?

Thanks.
  Top
Otis
LLBLGen Pro Team



Location:
The Hague, The Netherlands
Joined on:
17-Aug-2003 18:00:36
Posted:
37313 posts
# Posted on: 15-Sep-2017 10:21:45.  
In adapter or selfservicing? In adapter you can define catalog overwrites in code per call and globally. See: https://www.llblgen.com/Documentation/5.2/LLBLGen%20Pro%20RTF/Using%20the%20generated%20code/Adapter/gencode_dataaccessadapter_adapter.htm#multi-tenancy-support-catalog-specific-persistence-info-sql-server-mysql

In v5.3 (currently in EAP) we added a 'RuntimeConfiguration' class which allows configuration of eveything you can configure in the config files also in code in 1 place (.net core and .net full).


Frans Bouma
LLBLGen Pro / ORM Profiler Lead Developer | Blog | Twitter
 
Top
yowl
User



Location:
Colombia
Joined on:
11-Feb-2008 10:35:17
Posted:
169 posts
# Posted on: 15-Sep-2017 14:12:57.  
Thanks, Adapter, I missed that in the docs but that is what I was looking for. My impatience got the better of me. When you search for something at

https://www.llblgen.com/Documentation/5.2/LLBLGen%20Pro%20RTF/

like "configure code". You initially get a "Sorry, page not found" before the right hand side renders the results, and as I've been having problems with a slow connection I didn't wait long enough.

Good news on 5.3, look forward to it.
  Top
Pages: 1  


Powered by HnD ©2002-2007 Solutions Design
HnD uses LLBLGen Pro

Version: 2.1.12172008 Final.