You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<Topicid="connector-net-x-devapi-reference"visible="True"isDefault="true"isExpanded="true"title="MySQL Connector/Net X DevAPI Reference">
3
+
<Topicid="connector-net-x-devapi-reference"visible="True"isDefault="true"isExpanded="true"isSelected="true"title="MySQL Connector/Net X DevAPI Reference">
<para>The MySQL Connector/Net 7.0.2 (or higher) getting started tutorial, provides an introduction to the X DevAPI functionality introduced with MySQL 5.7.12. X functionality includes the new X DevAPI (DevAPI), which offers a modern, integrative way to work with relational and document data without requiring SQL knowledge when developing .NET Framework applications.</para>
6
+
<title>Introduction</title>
7
+
<para>The MySQL Connector/Net 7.0.2 (or higher) getting started tutorial, provides an introduction to the X DevAPI functionality introduced with MySQL 5.7.12. X functionality includes the new X DevAPI (DevAPI), which offers a modern, integrative way to work with relational and document data without requiring SQL knowledge when developing .NET Framework applications.</para>
8
8
9
-
<para>Requirements</para>
10
-
<list class="bullet">
11
-
<listItem>
12
-
<para>Connector/Net 7.0.2 or later</para>
13
-
</listItem>
14
-
<listItem>
15
-
<para>Visual Studio 2013/2015 Community Edition</para>
16
-
</listItem>
17
-
<listItem>
18
-
<para>MySQL 5.7.12 or later</para>
19
-
</listItem>
20
-
</list>
21
-
<para>Download Sample Database</para>
9
+
<para>Requirements</para>
10
+
<list class="bullet">
11
+
<listItem>
12
+
<para>Connector/Net 7.0.2 or later</para>
13
+
</listItem>
14
+
<listItem>
15
+
<para>Visual Studio 2013/2015 Community Edition</para>
16
+
</listItem>
17
+
<listItem>
18
+
<para>MySQL 5.7.12 or later</para>
19
+
</listItem>
20
+
</list>
21
+
<para>Download Sample Database</para>
22
22
23
-
<para>A MySQL script is provided with data and a JSON collection.</para>
23
+
<para>A MySQL script is provided with data and a JSON collection.</para>
24
24
25
-
<para>To install the world_x database sample, follow these steps:</para>
26
-
<list class="bullet">
27
-
<listItem>
28
-
<para>Download world_x.zip from http://dev.mysql.com/doc/index-other.html</para>
29
-
</listItem>
30
-
<listItem>
31
-
<para>Extract the installation archive to a temporary location such as /tmp/.</para>
32
-
</listItem>
33
-
<listItem>
34
-
<para>Unpacking the archive results in two files, one of them named world_x.sql.</para>
35
-
</listItem>
36
-
<listItem>
37
-
<para>Connect to the MySQL server using the mysql command-line client with the following command:</para>
38
-
<para>shell> mysql -u root -p</para>
39
-
<para>Enter your password when prompted. A non-root account can be used as long as the account has privileges to create new databases.</para>
40
-
</listItem>
41
-
<listItem>
42
-
<para>Execute the world_x.sql script to create the database structure, and insert the data, by using the following command:</para>
43
-
<para>mysql> SOURCE /temp/world_x.sql;</para>
44
-
<para>Replace /temp/ with the path to the world_x.sql file on your system.</para>
45
-
</listItem>
46
-
47
-
<para>The database contains the following:</para>
48
-
<listItem>
49
-
<para>Tables</para>
50
-
<para>City: Information about some of the cities in those countries.</para>
51
-
<para>Country: Minimal information about countries of the world.</para>
52
-
<para>CountryLanguage: Languages spoken in each country.</para>
53
-
</listItem>
54
-
<listItem>
55
-
<para>Collections:</para>
56
-
<para>CountryInfo: Information about countries in the world.</para>
57
-
</listItem>
58
-
</list>
59
-
<para>Getting started with MySQL Connector/Net 7.0.2 (or later)</para>
60
-
<para>Creating an XSession</para>
61
-
<para>
62
-
An XSession is a high-level database session concept that is different from working with traditional low-level MySQL connections. It is important to understand that an XSession is not the same as a traditional MySQL Session. XSessions encapsulate one or more actual MySQL connections.</para>
63
-
<para>- Create a new Visual Studio Console Project targeting .NET framework 4.5 or later.</para>
64
-
<para>- Use C# or Visual Basic as your preference. This tutorial will be done using C#.</para>
65
-
<para>- Add a reference in your project to the MySql.Data.dll 7.0.2</para>
66
-
<para>- Add a reference to the Google.ProtocolBuffers.dll 2.4.1.555</para>
67
-
<para>The following lines open the session so later on, a schema can be grabbed to make some basic operations.</para>
25
+
<para>To install the world_x database sample, follow these steps:</para>
26
+
<list class="bullet">
27
+
<listItem>
28
+
<para>Download world_x.zip from http://dev.mysql.com/doc/index-other.html</para>
29
+
</listItem>
30
+
<listItem>
31
+
<para>Extract the installation archive to a temporary location such as /tmp/.</para>
32
+
</listItem>
33
+
<listItem>
34
+
<para>Unpacking the archive results in two files, one of them named world_x.sql.</para>
35
+
</listItem>
36
+
<listItem>
37
+
<para>Connect to the MySQL server using the mysql command-line client with the following command:</para>
38
+
<para>shell> mysql -u root -p</para>
39
+
<para>Enter your password when prompted. A non-root account can be used as long as the account has privileges to create new databases.</para>
40
+
</listItem>
41
+
<listItem>
42
+
<para>Execute the world_x.sql script to create the database structure, and insert the data, by using the following command:</para>
43
+
<para>mysql> SOURCE /temp/world_x.sql;</para>
44
+
<para>Replace /temp/ with the path to the world_x.sql file on your system.</para>
45
+
</listItem>
46
+
<listItem>
47
+
<para>The database contains the following:</para>
48
+
</listItem>
49
+
<listItem>
50
+
<para>Tables</para>
51
+
<para>City: Information about some of the cities in those countries.</para>
52
+
<para>Country: Minimal information about countries of the world.</para>
53
+
<para>CountryLanguage: Languages spoken in each country.</para>
54
+
</listItem>
55
+
<listItem>
56
+
<para>Collections:</para>
57
+
<para>CountryInfo: Information about countries in the world.</para>
58
+
</listItem>
59
+
</list>
60
+
<para>Getting started with MySQL Connector/Net 7.0.2 (or later)</para>
61
+
<para>Creating an XSession</para>
62
+
<para>
63
+
An XSession is a high-level database session concept that is different from working with traditional low-level MySQL connections. It is important to understand that an XSession is not the same as a traditional MySQL Session. XSessions encapsulate one or more actual MySQL connections.
64
+
</para>
65
+
<para>- Create a new Visual Studio Console Project targeting .NET framework 4.5.1 or later.</para>
66
+
<para>- Use C# or Visual Basic as your preference. This tutorial will be done using C#.</para>
67
+
<para>- Add a reference in your project to the MySql.Data.dll 7.0.X</para>
68
+
<para>- Add a reference to Google.Protobuf 3.0.0</para>
69
+
<para>The following lines open the session so later on, a schema can be grabbed to make some basic operations.</para>
0 commit comments