Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
newspaper backend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lap nguyen
newspaper backend
Commits
1ffa5505
Commit
1ffa5505
authored
Feb 06, 2023
by
lap nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update connection string
parent
526bb6cf
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
BaseProvider.cs
Provider/BaseProvider.cs
+1
-1
appsettings.json
appsettings.json
+1
-1
No files found.
Provider/BaseProvider.cs
View file @
1ffa5505
...
...
@@ -11,7 +11,7 @@ namespace News_site.Provider
public
BaseProvider
()
{
DbContextOptionsBuilder
<
DataContext
>
optionsBuilder
=
new
DbContextOptionsBuilder
<
DataContext
>();
optionsBuilder
.
UseNpgsql
(
"
{YOUR CONNECTION STRING}
"
);
optionsBuilder
.
UseNpgsql
(
"
Host=27.74.255.96;Database=site_news;Username=postgres;Password=meu@sds12@!#gh;Port=5430
"
);
db
=
new
DataContext
(
optionsBuilder
.
Options
);
}
public
async
Task
<
bool
>
SaveDataAsync
()
...
...
appsettings.json
View file @
1ffa5505
{
"ConnectionStrings"
:
{
"HangfireConnection"
:
"
{YOUR CONNECTION STRING}
"
"HangfireConnection"
:
"
Host=27.74.255.96;Database=site_news;Username=postgres;Password=meu@sds12@!#gh;Port=5430
"
},
"Logging"
:
{
"LogLevel"
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment