Summary Files Commits Branches @commit @diff @stats
path: root / website / tutorials
diff options
context:
space:
mode:
Commitf5c9f6a0bf77bb9acdf80aded94e0396f0355794 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2020-05-24 17:17:03 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2020-05-24 17:17:03 +0300
Filesb1d69a325d122485566b7d4e48a4accc8536aed1 /website/tutorials
syndamia.com-f5c9f6a0bf77bb9acdf80aded94e0396f0355794.tar
syndamia.com-f5c9f6a0bf77bb9acdf80aded94e0396f0355794.tar.gz
syndamia.com-f5c9f6a0bf77bb9acdf80aded94e0396f0355794.zip
Parente5cc6c25b8000789dc7969cbd8f2ef5e92c076c3 (diff)
Added title attributes for GitHub, StackOverflow and Back. Gave all class attributes quotes. Did some minor modifications.
diff --git a/website/tutorials/connect-to-mysql-in-csharp-ef/connecting.html b/website/tutorials/connect-to-mysql-in-csharp-ef/connecting.html
index 5ebf9f8..2f528a6 100644
--- a/website/tutorials/connect-to-mysql-in-csharp-ef/connecting.html
+++ b/website/tutorials/connect-to-mysql-in-csharp-ef/connecting.html
@@ -9,29 +9,29 @@
</head>
<body>
- <div class=header>
- <div class=article-title>Connect to MySql in C# and Entitiy Framework</div>
+ <div class="header">
+ <div class="article-title">Connect to MySql in C# and Entitiy Framework</div>
- <a href="./introduction.html" class=other-tab>Introduction</a>
- <a href="./preparation.html" class=other-tab>Preparation</a>
- <a href="./connecting.html" class=selected-tab>Connecting</a>
+ <a href="./introduction.html" class="other-tab">Introduction</a>
+ <a href="./preparation.html" class="other-tab">Preparation</a>
+ <a href="./connecting.html" class="selected-tab">Connecting</a>
- <a href="../index.html" class=close style="margin-left: 403px;"><img src="../../images/ui/close.png" alt="Back"></a>
+ <a href="../index.html" class="close" style="margin-left: 403px;" title="Back to Tutorials"><img src="../../images/ui/close.png" alt="Back"></a>
</div>
- <div class=page>
+ <div class="page">
<h2>Connection string</h2>
<p>
- You can find many ways to impliment your connection string from <a href="https://www.connectionstrings.com/mysql/" class=hyperlink>here</a>.
+ You can find many ways to impliment your connection string from <a href="https://www.connectionstrings.com/mysql/" class="hyperlink">here</a>.
From experience, this one works the best: <br>
- <p class=code>
+ <p class="code">
"server=localhost; port=YOUR-PORT; user id=YOUR-USER-ID; password=YOUR-PASSWORD; database=NAME-OF-DATABASE; SslMode=none"
</p>
If you don't know your port or user id, just look at the connection you use to connect to the database.
</p>
- <p class=tutorial-p>
- <img src="./images/connections.png" alt="MyServer root 127.0.0.1:3306" class=tutorial-img>
- <span class=tutorial-text>
+ <p class="tutorial-p">
+ <img src="./images/connections.png" alt="MyServer root 127.0.0.1:3306" class="tutorial-img">
+ <span class="tutorial-text">
In this example, the user id is <i>root</i> and the port is <i>3306</i>.
</span>
</p>
@@ -42,7 +42,7 @@
</p>
<p>
Your ConfigureServices method should currenly look something like this:
- <p class=code>
+ <p class="code">
&emsp;// This method gets called by the runtime. Use this method to add services to the container. <br>
&emsp;public void ConfigureServices(IServiceCollection services) <br>
&emsp;{ <br>
@@ -54,16 +54,16 @@
&emsp;&emsp;}); <br>
&emsp;}
</p>
- You need to change <span class=code>.UseSQL</span> to <span class=code>.UseMySQL</span> (refer to <a href="./preparations" class=hyperlink>preparations</a> if you haven't already).
+ You need to change <span class="code">.UseSQL</span> to <span class="code">.UseMySQL</span> (refer to <a href="./preparations" class="hyperlink">preparations</a> if you haven't already).
</p>
<br>
<h2>DBContext child class</h2>
<p>
- If you want to connect a DBContext child class to a MySQL databse, the best way is to override the <span class=code>OnConfiguring</span> method. In the override, in <span class=code>optionsBuilder</span>, call the <span class=code>.UseMySQL</span> method (refer to <a href="./preparations" class=hyperlink>preparations</a> if you haven't already).
+ If you want to connect a DBContext child class to a MySQL databse, the best way is to override the <span class="code">OnConfiguring</span> method. In the override, in <span class="code">optionsBuilder</span>, call the <span class="code">.UseMySQL</span> method (refer to <a href="./preparations" class="hyperlink">preparations</a> if you haven't already).
</p>
<p>
Example:
- <p class=code>
+ <p class="code">
&emsp;protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) <br>
&emsp;{ <br>
&emsp;&emsp;optionsBuilder.UseMySQL(DataBaseContexts.ConnectionStringMySQL); <br>
@@ -74,21 +74,21 @@
<br>
- <footer class=footer>
- <a href="https://github.com/Syndamia" target="_blank" class=hyperlink-footer><img src="../../images/logos/github.png" alt="GitHub"></a>
- <a href="https://stackoverflow.com/users/12036073/syndamia" target="_blank" class=hyperlink-footer><img src="../../images/logos/stackoverflow.png" alt="StackOverflow"></a>
+ <footer class="footer">
+ <a href="https://github.com/Syndamia" target="_blank" class="hyperlink-footer" title="GitHub"><img src="../../images/logos/github.png" alt="GitHub"></a>
+ <a href="https://stackoverflow.com/users/12036073/syndamia" target="_blank" class="hyperlink-footer" title="StackOverflow"><img src="../../images/logos/stackoverflow.png" alt="StackOverflow"></a>
- <hr width=350px noshade>
+ <hr width="350px" noshade>
- <a href="../index.html" class=hyperlink-footer>Tutorials</a> |
- <a href="../../projects/index.html" class=hyperlink-footer>Projects</a> |
- <a href="../../about.html" class=hyperlink-footer>About</a> |
- <a href="../../resume.html" class=hyperlink-footer>Resume</a>
+ <a href="../index.html" class="hyperlink-footer">Tutorials</a> |
+ <a href="../../projects/index.html" class="hyperlink-footer">Projects</a> |
+ <a href="../../about.html" class="hyperlink-footer">About</a> |
+ <a href="../../resume.html" class="hyperlink-footer">Resume</a>
- <hr width=350px noshade>
+ <hr width="350px" noshade>
- <a href="https://github.com/Syndamia/syndamiadotcom/blob/master/LICENSE" target="_blank" class=hyperlink-footer>Website License</a> |
- <a href="../../credit.html" target="_blank" class=hyperlink-footer>Credit</a>
+ <a href="https://github.com/Syndamia/syndamiadotcom/blob/master/LICENSE" target="_blank" class="hyperlink-footer">Website License</a> |
+ <a href="../../credit.html" target="_blank" class="hyperlink-footer">Credit</a>
</footer>
</body>
</html>
diff --git a/website/tutorials/connect-to-mysql-in-csharp-ef/introduction.html b/website/tutorials/connect-to-mysql-in-csharp-ef/introduction.html
index 060e338..56cbfcd 100644
--- a/website/tutorials/connect-to-mysql-in-csharp-ef/introduction.html
+++ b/website/tutorials/connect-to-mysql-in-csharp-ef/introduction.html
@@ -9,17 +9,17 @@
</head>
<body>
- <div class=header>
- <div class=article-title>Connect to MySql in C# and Entitiy Framework</div>
+ <div class="header">
+ <span class="article-title">Connect to MySql in C# and Entitiy Framework</span>
- <a href="./introduction.html" class=selected-tab>Introduction</a>
- <a href="./preparation.html" class=other-tab>Preparation</a>
- <a href="./connecting.html" class=other-tab>Connecting</a>
+ <a href="./introduction.html" class="selected-tab">Introduction</a>
+ <a href="./preparation.html" class="other-tab">Preparation</a>
+ <a href="./connecting.html" class="other-tab">Connecting</a>
- <a href="../index.html" class=close style="margin-left: 403px;"><img src="../../images/ui/close.png" alt="Back"></a>
+ <a href="../index.html" class="close" style="margin-left: 403px;" title="Back to Tutorials"><img src="../../images/ui/close.png" alt="Back"></a>
</div>
- <div class=page>
+ <div class="page">
<p>
Connecting to MySql through C# can be quite tricky. I and many others have wasted too much time trying to figure this out. For that reason, I am making this tutorial.
</p>
@@ -33,21 +33,21 @@
<br>
- <footer class=footer>
- <a href="https://github.com/Syndamia" target="_blank" class=hyperlink-footer><img src="../../images/logos/github.png" alt="GitHub"></a>
- <a href="https://stackoverflow.com/users/12036073/syndamia" target="_blank" class=hyperlink-footer><img src="../../images/logos/stackoverflow.png" alt="StackOverflow"></a>
+ <footer class="footer">
+ <a href="https://github.com/Syndamia" target="_blank" class="hyperlink-footer" title="GitHub"><img src="../../images/logos/github.png" alt="GitHub"></a>
+ <a href="https://stackoverflow.com/users/12036073/syndamia" target="_blank" class="hyperlink-footer" title="StackOverflow"><img src="../../images/logos/stackoverflow.png" alt="StackOverflow"></a>
- <hr width=350px noshade>
+ <hr width="350px" noshade>
- <a href="../index.html" class=hyperlink-footer>Tutorials</a> |
- <a href="../../projects/index.html" class=hyperlink-footer>Projects</a> |
- <a href="../../about.html" class=hyperlink-footer>About</a> |
- <a href="../../resume.html" class=hyperlink-footer>Resume</a>
+ <a href="../index.html" class="hyperlink-footer">Tutorials</a> |
+ <a href="../../projects/index.html" class="hyperlink-footer">Projects</a> |
+ <a href="../../about.html" class="hyperlink-footer">About</a> |
+ <a href="../../resume.html" class="hyperlink-footer">Resume</a>
- <hr width=350px noshade>
+ <hr width="350px" noshade>
- <a href="https://github.com/Syndamia/syndamiadotcom/blob/master/LICENSE" target="_blank" class=hyperlink-footer>Website License</a> |
- <a href="../../credit.html" target="_blank" class=hyperlink-footer>Credit</a>
+ <a href="https://github.com/Syndamia/syndamiadotcom/blob/master/LICENSE" target="_blank" class="hyperlink-footer">Website License</a> |
+ <a href="../../credit.html" target="_blank" class="hyperlink-footer">Credit</a>
</footer>
</body>
</html>
diff --git a/website/tutorials/connect-to-mysql-in-csharp-ef/preparation.html b/website/tutorials/connect-to-mysql-in-csharp-ef/preparation.html
index e75b5a9..9179d06 100644
--- a/website/tutorials/connect-to-mysql-in-csharp-ef/preparation.html
+++ b/website/tutorials/connect-to-mysql-in-csharp-ef/preparation.html
@@ -9,48 +9,48 @@
</head>
<body>
- <div class=header>
- <div class=article-title>Connect to MySql in C# and Entitiy Framework</div>
+ <div class="header">
+ <span class="article-title">Connect to MySql in C# and Entitiy Framework</span>
- <a href="./introduction.html" class=other-tab>Introduction</a>
- <a href="./preparation.html" class=selected-tab>Preparation</a>
- <a href="./connecting.html" class=other-tab>Connecting</a>
+ <a href="./introduction.html" class="other-tab">Introduction</a>
+ <a href="./preparation.html" class="selected-tab">Preparation</a>
+ <a href="./connecting.html" class="other-tab">Connecting</a>
- <a href="../index.html" class=close style="margin-left: 403px;"><img src="../../images/ui/close.png" alt="Back"></a>
+ <a href="../index.html" class="close" style="margin-left: 403px;" title="Back to Tutorials"><img src="../../images/ui/close.png" alt="Back"></a>
</div>
- <div class=page>
+ <div class="page">
<h2>MySql</h2>
<p>
- First of all, you need to insall MySql. You can do that from <a href="https://dev.mysql.com/downloads/installer/" class=hyperlink target="_blank">here</a>. This is the installer. Skip this step, if you have already done it.
+ First of all, you need to insall MySql. You can do that from <a href="https://dev.mysql.com/downloads/installer/" class="hyperlink" target="_blank">here</a>. This is the installer. Skip this step, if you have already done it.
</p>
<h2>NuGet packages</h2>
<p>
- For an Entity Framework, <a href="https://www.nuget.org/packages/Microsoft.EntityFrameworkCore" class=hyperlink target="_blank">Microsoft.EntitiyFrameworkCore</a> is the goto packet in this tutorial.
+ For an Entity Framework, <a href="https://www.nuget.org/packages/Microsoft.EntityFrameworkCore" class="hyperlink" target="_blank">Microsoft.EntitiyFrameworkCore</a> is the goto packet in this tutorial.
</p>
<p>
Although Microsoft.EntitiyFrameworkCore does offer connectivity with SQL server, <b>it doesn't offer anything for MySql</b>. <br>
- That's why we need another package: <a href="https://www.nuget.org/packages/MySql.Data.EntityFrameworkCore/" class=hyperlink target="_blank">MySql.Data.EntitiyFrameworkCore</a>.
+ That's why we need another package: <a href="https://www.nuget.org/packages/MySql.Data.EntityFrameworkCore/" class="hyperlink" target="_blank">MySql.Data.EntitiyFrameworkCore</a>.
</p>
</div>
<br>
- <footer class=footer>
- <a href="https://github.com/Syndamia" target="_blank" class=hyperlink-footer><img src="../../images/logos/github.png" alt="GitHub"></a>
- <a href="https://stackoverflow.com/users/12036073/syndamia" target="_blank" class=hyperlink-footer><img src="../../images/logos/stackoverflow.png" alt="StackOverflow"></a>
+ <footer class="footer">
+ <a href="https://github.com/Syndamia" target="_blank" class="hyperlink-footer" title="GitHub"><img src="../../images/logos/github.png" alt="GitHub"></a>
+ <a href="https://stackoverflow.com/users/12036073/syndamia" target="_blank" class="hyperlink-footer" title="StackOverflow"><img src="../../images/logos/stackoverflow.png" alt="StackOverflow"></a>
- <hr width=350px noshade>
+ <hr width="350px" noshade>
- <a href="../index.html" class=hyperlink-footer>Tutorials</a> |
- <a href="../../projects/index.html" class=hyperlink-footer>Projects</a> |
- <a href="../../about.html" class=hyperlink-footer>About</a> |
- <a href="../../resume.html" class=hyperlink-footer>Resume</a>
+ <a href="../index.html" class="hyperlink-footer">Tutorials</a> |
+ <a href="../../projects/index.html" class="hyperlink-footer">Projects</a> |
+ <a href="../../about.html" class="hyperlink-footer">About</a> |
+ <a href="../../resume.html" class="hyperlink-footer">Resume</a>
- <hr width=350px noshade>
+ <hr width="350px" noshade>
- <a href="https://github.com/Syndamia/syndamiadotcom/blob/master/LICENSE" target="_blank" class=hyperlink-footer>Website License</a> |
- <a href="../../credit.html" target="_blank" class=hyperlink-footer>Credit</a>
+ <a href="https://github.com/Syndamia/syndamiadotcom/blob/master/LICENSE" target="_blank" class="hyperlink-footer">Website License</a> |
+ <a href="../../credit.html" target="_blank" class="hyperlink-footer">Credit</a>
</footer>
</body>
</html>
diff --git a/website/tutorials/index.html b/website/tutorials/index.html
index e2a8352..6092fa8 100644
--- a/website/tutorials/index.html
+++ b/website/tutorials/index.html
@@ -9,7 +9,7 @@
</head>
<body>
- <div class=header>
+ <div class="header">
<a href="./index.html" class="selected-tab"``>Tutorials</a>
<a href="../projects/index.html" class="other-tab">Projects</a>
<a href="../index.html" class="other-tab">Home</a>
@@ -17,35 +17,35 @@
<a href="../resume.html" class="other-tab">Resume</a>
</div>
- <div class=page-centered>
+ <div class="page-centered">
GtkSharp 2.0 [COMING SOON]
- <hr class=separator>
+ <hr class="separator">
- <a href="./connect-to-mysql-in-csharp-ef/introduction.html" class=hyperlink>Connect to MySql in C# and Entity Framework</a>
+ <a href="./connect-to-mysql-in-csharp-ef/introduction.html" class="hyperlink">Connect to MySql in C# and Entity Framework</a>
<p>
- I have some tutorial-style notes in my <a href="https://github.com/Syndamia/References" class=hyperlink>references repo</a>. Warning: some stuff might be wrong.
+ I have some tutorial-style notes in my <a href="https://github.com/Syndamia/References" class="hyperlink">references repo</a>. Warning: some stuff might be wrong.
</p>
</div>
<br>
- <footer class=footer>
- <a href="https://github.com/Syndamia" target="_blank" class=hyperlink-footer><img src="../images/logos/github.png" alt="GitHub"></a>
- <a href="https://stackoverflow.com/users/12036073/syndamia" target="_blank" class=hyperlink-footer><img src="../images/logos/stackoverflow.png" alt="StackOverflow"></a>
+ <footer class="footer">
+ <a href="https://github.com/Syndamia" target="_blank" class="hyperlink-footer" title="GitHub"><img src="../images/logos/github.png" alt="GitHub"></a>
+ <a href="https://stackoverflow.com/users/12036073/syndamia" target="_blank" class="hyperlink-footer" title="StackOverflow"><img src="../images/logos/stackoverflow.png" alt="StackOverflow"></a>
- <hr width=350px noshade>
+ <hr width="350px" noshade>
- <a href="../tutorials/index.html" class=hyperlink-footer>Tutorials</a> |
- <a href="../projects/index.html" class=hyperlink-footer>Projects</a> |
- <a href="../about.html" class=hyperlink-footer>About</a> |
- <a href="../resume.html" class=hyperlink-footer>Resume</a>
+ <a href="../tutorials/index.html" class="hyperlink-footer">Tutorials</a> |
+ <a href="../projects/index.html" class="hyperlink-footer">Projects</a> |
+ <a href="../about.html" class="hyperlink-footer">About</a> |
+ <a href="../resume.html" class="hyperlink-footer">Resume</a>
- <hr width=350px noshade>
+ <hr width="350px" noshade>
- <a href="https://github.com/Syndamia/syndamiadotcom/blob/master/LICENSE" target="_blank" class=hyperlink-footer>Website License</a> |
- <a href="../credit.html" target="_blank" class=hyperlink-footer>Credit</a>
+ <a href="https://github.com/Syndamia/syndamiadotcom/blob/master/LICENSE" target="_blank" class="hyperlink-footer">Website License</a> |
+ <a href="../credit.html" target="_blank" class="hyperlink-footer">Credit</a>
</footer>
</body>
</html>