where can i find the informations for Database.Get? I'm interessted in values for configOverride, especially how to give a Port for a database.
Thx in advance
3 Answers, 1 is accepted
answered on 26 Oct 2012, 07:21 AM
I am not quite sure why you want to work with the Database object itself.
The best way to specify a port for a database in my opinion is to provide this information within your connection string. There you are able to specify whatever is supported by the respective database.
See this link for details how to do this.
When working with the Context, there is also no need to use this method. You can override the OnDatabaseOpen method to tweak the BackendConfiguration and/or the MetaDataContainer in the way that fits your purpose.
Nevertheless, if you want to use the old approach you can use the Database.Get method as well. See this documentation for details. Regarding the valid values there, you might find this link useful.
I hope this information is helpful for you.
Do come back if you need further assistance.
the Telerik team
Telerik OpenAccess ORM Meets ASP.NET Web API. Read more.
Hi, I work at a new job where classic Telerik API is used. A connection to databases should be created on the fly (and not in app/wep config). The message with connection string looks quite nice, but it's the classic api...