Register
Log in
1210
users online
(
0
)
Product
What is nopCommerce
Why nopCommerce
Features
Store demo
Showcase
Case studies
Roadmap
Copyright notice removal
License
Downloads
Download nopCommerce
Marketplace
Release notes
Support & Services
Documentation
Community forums
Premium support
Request a quote
Migrate to nopCommerce
Community
Blog
Write for nopCommerce
Contribute
Certified developer program
MVP program
Partners
Recommended hosting
Solution partners
Technology partners
Become a partner
Advertise with us
Company
About us
Meet our team
Contact us
< Back
Register
Log in
< Back
Product
>
What is nopCommerce
Why nopCommerce
Features
Store demo
Showcase
Case studies
Roadmap
Copyright notice removal
License
Downloads
>
Download nopCommerce
Marketplace
Release notes
Support & Services
>
Documentation
Community forums
Premium support
Request a quote
Migrate to nopCommerce
Community
>
Blog
Write for nopCommerce
Contribute
Certified developer program
MVP program
Partners
>
Recommended hosting
Solution partners
Technology partners
Become a partner
Advertise with us
Company
>
About us
Meet our team
Contact us
Home
>
Forums
>
General
>
Commercial Help Wanted
>
How to get Connection String ?
How to get Connection String ?
Reply
ritwickdey
Total Posts:
2
Karma:
26
Joined:
9/1/2018
Location:
India
PM
Posted:
September 05, 2018 at 1:07 AM
Quote
#211525
This code is not working anymore.
https://www.nopcommerce.com/boards/t/18539/how-to-get-connection-string-from-_context-in-my-code.aspx
var connectionString = new DataSettingsManager().LoadSettings().DataConnectionString;
1
Please
login or register
to vote for this post.
(click on this box to dismiss)
justit
Total Posts:
1
Karma:
-3
Joined:
8/29/2018
Location:
India
PM
Posted:
September 05, 2018 at 1:37 AM
Quote
#211527
Hi,
I can help.
You can reach me on Skype: cisin.justin or Email:
[email protected]
so that we can discuss this further.
Justin
+14074139057
-4
Please
login or register
to vote for this post.
(click on this box to dismiss)
sk5202
Total Posts:
730
Karma:
5757
Joined:
2/10/2017
Location:
India
PM
Posted:
September 06, 2018 at 9:07 AM
Quote
#211614
ritwickdey wrote:
This code is not working anymore.
https://www.nopcommerce.com/boards/t/18539/how-to-get-connection-string-from-_context-in-my-code.aspx
var connectionString = new DataSettingsManager().LoadSettings().DataConnectionString;
.
May I know which version of Nopcommerce are you using??
0
Please
login or register
to vote for this post.
(click on this box to dismiss)
Please up-vote the answer, if it helpful to you! :)
Cheers,
sk5202
ritwickdey
Total Posts:
2
Karma:
26
Joined:
9/1/2018
Location:
India
PM
Posted:
September 06, 2018 at 9:09 AM
Quote
#211615
latest one.. I think 4.1... (asp
net core 2.1)
-1
Please
login or register
to vote for this post.
(click on this box to dismiss)
sk5202
Total Posts:
730
Karma:
5757
Joined:
2/10/2017
Location:
India
PM
Posted:
September 06, 2018 at 12:14 PM
Quote
#211620
Hello,
You can use below code to get connection string in 4.10.
using
Nop.Core.Data;
var dataSettings = DataSettingsManager.LoadSettings();
0
Please
login or register
to vote for this post.
(click on this box to dismiss)
Please up-vote the answer, if it helpful to you! :)
Cheers,
sk5202
Premium support services
Dedicated
premium support services
provided by core developers are intended for persons who run mission critical websites, work on projects with tight deadlines, or want to get dedicated support.
Professional services
Want to open a new store? Want to take your store to the next level? Need a custom extension? We can customize nopCommerce to fit your store perfectly.
Request a quote
to get started.