1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
<!DOCTYPE html>
<html lang="en-us">
<html>
<head id="mySqlConnectEntityFrameworkCSharp">
<meta charset="UTF-8">
<meta name="description" content="Things you need to do as preparations for connecting to MySql in C# and Entitiy Framework">
<meta name="keywords" content="programming, C#, tutorial, mysql, entity, framework, database, asp.net, dbcontext, connectionstring, connection">
<meta name="author" content="Kamen Mladenov">
<meta name="robots" content="index, follow">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="../../img/favicon.png" type="image/png"/>
<link rel="shortcut icon" href="../../img/favicon.png" type="image/png"/>
<title>Connect to MySql in C# and Entitiy Framework - Preparation</title>
<link rel="stylesheet" href="../../css/styles.css">
<link rel="stylesheet" href="../../css/styles-multiple-page-articles.css">
</head>
<body id="Preparation">
<div class="header">
<script type="text/javascript" src="../../js/header.js"></script>
</div>
<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.
</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.
</p>
<p>
Although <a href="https://www.nuget.org/packages/Microsoft.EntityFrameworkCore" class="hyperlink" target="_blank">Microsoft.EntitiyFrameworkCore</a> does offer connectivity with MS SQL server, <b>it doesn't offer anything for MySql</b>. <br>
That's why we also need to install another package: <a href="https://www.nuget.org/packages/MySql.Data.EntityFrameworkCore/" class="hyperlink" target="_blank">MySql.Data.EntitiyFrameworkCore</a>.
</p>
</div>
<br>
<footer id="child-child-dir" class="footer"></footer>
</body>
<script type="text/javascript" src="../../js/footer.js"></script>
</html>
|