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
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.
Ralph
the Telerik team
The manual in link didn't help so much.
What i was missing was the port. I found out that the database objects shows the port, if it is given in servername (like below):
<servername>{server}:{port}</servername>
I am not quite sure if your problem is gone when you use the approach you provided but you can also specify a connection string in the following manner.
<connectionString>Data Source=SOMEDATASOURCE;User ID=USER;Password=PASSWORD;</connectionString>Feel free to ask if you have any other question.Kind regards,
Ralph
the Telerik team