Bug #83302 Sample code is not correct: "MySQLX" not "MySqlX"

Submitted: 7 Oct 2016 13:33 Modified: 31 Jul 2017 16:36
Reporter: Gabriela Martinez Sanchez Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / NET Documentation Severity:S3 (Non-critical)
Version: OS:Any
Assigned to: Roberto Ezequiel Garcia Ballesteros CPU Architecture:Any

[7 Oct 2016 13:33] Gabriela Martinez Sanchez
Description:
Since C# is case sensitive the sample code above has an error which took me
quite a while to figure out :(
per this document:
https://dev.mysql.com/doc/dev/connector-net/html/N_MySqlX_XDevAPI.htm
the main class for session operations for MySQL Hybrid is named "MySQLX"
not "MySqlX" as you have in these lines above:
// Connect to server on localhost
  var mySession =
MySqlX.GetSession("server=localhost;port=33060;user=mike;password=s3cr3t!;");
that line gives the error:
Type or namespace 'GetSession' does not exist in the namespace 'MySqlX'
(are you missing an assembly reference?)
Hope this help a few folks.

How to repeat:
NA

Suggested fix:
use "MySQLX" not "MySqlX"
[25 Apr 2017 20:06] Christine Cole
Updated the X DevAPI User Guide:
* Replaced MySqlX => MySQLX in syntax examples in concepts.xml and 
  statement-execution.xml.
[31 Jul 2017 16:35] Stefan Hinz
Posted by developer:
 
Thanks for reporting! Documentation bug fixed.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.038 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.