Summary Files Commits Branches @commit @diff @stats
path: root / website / tutorials / connect-to-mysql-in-csharp-ef / preparation.html
blob: 9bc73cfb6d8cdcea74d086340fcac76823669f8b (plain) (blame)
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<!DOCTYPE html>
<html lang="en-us">
<html>
    <head>
        <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="../../images/favicon.png" type="image/png"/>
        <link rel="shortcut icon" href="../../images/favicon.png" type="image/png"/>
        <title>Connect to MySql in C# and Entitiy Framework - Preparation</title>
        <link rel="stylesheet" href="../../styles.css">
        <link rel="stylesheet" href="../../styles-multiple-page-articles.css">
    </head>

    <body>
        <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="../index.html" class="close" style="margin-left: 403px;" title="Back to Tutorials"><img src="../../images/ui/close.png" alt="Back" width="32" height="32"></a>
        </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 class="footer">
            <a href="https://github.com/Syndamia" target="_blank" class="hyperlink-footer" title="GitHub"><img src="../../images/logos/github.png" alt="GitHub" width="32" height="32"></a>
            <a href="https://stackoverflow.com/users/12036073/syndamia" target="_blank" class="hyperlink-footer" title="StackOverflow"><img src="../../images/logos/stackoverflow.png" alt="StackOverflow" width="32" height="32"></a>
            <a href="https://bg.linkedin.com/in/kamen-mladenov-18563b1a3?trk=people-guest_people_search-card" target="_blank" class="hyperlink-footer" title="Linkedin"><img src="../../images/logos/linkedin.png" alt="Linkedin" width="32" height="32"></a>

            <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>

            <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>
        </footer>
    </body>
</html>