Summary Files Commits Branches @commit @diff @stats
path: root / src / tutorials / connect-to-mysql-in-csharp-ef / connecting.md
diff options
context:
space:
mode:
Commit75574c193a22373bf13d2afc0f65c4eece150697 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2021-03-12 09:33:17 +0200
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2021-03-12 09:33:17 +0200
Files68d00260a9e223920c6bcadb57b11c6d8d41f945 /src/tutorials/connect-to-mysql-in-csharp-ef/connecting.md
syndamia.com-75574c193a22373bf13d2afc0f65c4eece150697.tar
syndamia.com-75574c193a22373bf13d2afc0f65c4eece150697.tar.gz
syndamia.com-75574c193a22373bf13d2afc0f65c4eece150697.zip
Parent8e85299a3f5b9289a7e9d7e67e3a2bc8d550c5cb (diff)
Updated header links in all files
1 files changed, 4 insertions, 4 deletions
-rw-r--r--src/tutorials/connect-to-mysql-in-csharp-ef/connecting.md8
diff --git a/src/tutorials/connect-to-mysql-in-csharp-ef/connecting.md b/src/tutorials/connect-to-mysql-in-csharp-ef/connecting.md
index 6f05a76..61989f4 100644
--- a/src/tutorials/connect-to-mysql-in-csharp-ef/connecting.md
+++ b/src/tutorials/connect-to-mysql-in-csharp-ef/connecting.md
@@ -1,5 +1,5 @@
# Connect to MySql in C# and Entity Framework - Connecting
-[🔗](#Connect%20to%20MySql%20in%20C#%20and%20Entity%20Framework%20-%20Connecting)
+[![🔗](/img/link-tabler.svg)](#Connect%20to%20MySql%20in%20C#%20and%20Entity%20Framework%20-%20Connecting)
**Article Created: 21 May 2020** || **Last Edited: 25 November 2020**
@@ -8,7 +8,7 @@
---
## Connection string
-[🔗](#Connection%20string)
+[![🔗](/img/link-tabler.svg)](#Connection%20string)
You can find a truckload of ways to make your connection string from places like [this](https://www.connectionstrings.com/mysql/) but in this case, I've found out that most don't work.
After a lot of trial and error, I've found that this one works the best:
@@ -22,7 +22,7 @@ If you are using `MySQL Workbench` and you don't know your port and id, you can
![MyServer root 127.0.0.1:3306](./img/connections.png) In this example, the user id is _root_ and the port is _3306_.
## ASP.NET Startup
-[🔗](#ASP.NET%20Startup)
+[![🔗](/img/link-tabler.svg)](#ASP.NET%20Startup)
If you are making an `ASP.NET` application, you'll need to put the connection string in the `ConfigureServices` method of the `Startup.cs` file.
@@ -44,7 +44,7 @@ public void ConfigureServices(IServiceCollection services)
```
## DBContext child class
-[🔗](#DBContext%20child%20class)
+[![🔗](/img/link-tabler.svg)](#DBContext%20child%20class)
If you want to connect a `DBContext` child class to a `MySQL` database, one of the easiest ways to do it, is to override the `OnConfiguring` method.