Yes you're right
The first thing i was trying to test, is get connection with database just with the same connection string using the method constructor with nameOrConnectionString param, but i can't connect, as i described in above post, so the next step is pass user and password as parameters, in fact i don't know how neither.
Thanks a lot for your help
This is how we did it with no success :( ...
public Backend_MintDbContext(string nameOrConnectionString) : base(CreateDynamicConnectionString()) {
}
private static string CreateDynamicConnectionString() { return "DATA SOURCE=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=xxx.xx.xxx.xxx)(PORT=xxxx)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=xxxx)));PASSWORD=xxxx;PERSIST SECURITY INFO=True;USER ID=xxxx; enlist=dynamic;"; }
This is our currently working default connection string, we are using the same connection string on above method
<connectionStrings> <add name="Default" connectionString="DATA SOURCE=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=xxx.xx.xxx.xxx)(PORT=xxxx)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=xxxx)));PASSWORD=xxxx;PERSIST SECURITY INFO=True;USER ID=xxxx; enlist=dynamic;" providerName="Oracle.ManagedDataAccess.Client" /> </connectionStrings>
And we remove this constructor
public Backend_MintDbContext() : base("Default") {
}
So it's not working in that way ... what can be wrong ? thanks for your help
hi !
how can i send user and password as parameters in my web.config connection string, using abp ? i’ve done with asp.net creating sql connection before open, but here it’s a little bit different.
Thanks for your help
Sure ! thank you so much for your time
I'm have uploaded tree images with the important stuff.
This is the detailed exception (just let me know if you need more details, i've been stucked on that :cry: , so any extra info, i'll reply, as soon as possible) <a class="postlink" href="https://www.dropbox.com/s/vzas0r5aqmvlz47/1.jpg?dl=0">https://www.dropbox.com/s/vzas0r5aqmvlz47/1.jpg?dl=0</a>
Caused by getAll query <a class="postlink" href="https://www.dropbox.com/s/6ntu9t8irh8kw59/2.jpg?dl=0">https://www.dropbox.com/s/6ntu9t8irh8kw59/2.jpg?dl=0</a>
And this is my model <a class="postlink" href="https://www.dropbox.com/s/x3bazvhi5rlr8i4/3.jpg?dl=0">https://www.dropbox.com/s/x3bazvhi5rlr8i4/3.jpg?dl=0</a>
I'm using entity framework 6, and ODP 12.1.022 ... could you tell me please which versions are u using ? x86 or x64 ?
Thanks a lot :D
Url for image <a class="postlink" href="https://www.dropbox.com/s/bkmntfzgojuzc61/Captura.PNG?dl=0">https://www.dropbox.com/s/bkmntfzgojuzc ... a.PNG?dl=0</a>
Hi !
I have created some migrations in Oracle database succesfully, using Oracle Data Provider for .NET (ODP) 64 bits, but when i tried to query some object, i'm getting an "ORA-00972 identifier is too long" :shock: , after some research over internet and forums, it is caused because Oracle has a limitation of 30 characters in object names. Right now i just have one custom table called "noticias" as seen below on picture
So one possible solution it's make my table names shorter, to avoid, indexes, foreign keys, secuences or any object, have more than 30 characters.
It's possible to change default asp.net boilerplate table names names by shorter ones, and how ? really i can't find other solution, since i just have a single and short custom table name, my last change its test if default tables with shorter names could work.
Or do you know other possible solution to this problem ?
Thanks a lot
Hi !
Please some help, how can I send images from my front to the server using boilerplate ? I would really appreciate some details.
Thanks a lot