├── .gitignore ├── .travis.yml ├── CHANGES ├── COPYING ├── ConnectorNet.nunit ├── Documentation ├── CodeExamples │ ├── MembershipCodeExample1.xml │ ├── MembershipCodeExample2.xml │ └── RoleCodeExample1.xml ├── CollectionFiles │ ├── COL_Master.HxC │ ├── COL_Master.HxT │ ├── COL_Master_A.HxK │ ├── COL_Master_F.HxK │ ├── COL_Master_K.HxK │ ├── COL_Master_N.HxK │ ├── FixRegTables.exe │ ├── IntegrationWizard.xml │ └── MSHelp2_RegTables__RTL_---_---.msm ├── Layout.content ├── Licenses for Third-Party Components │ ├── license-antlr.html │ ├── license-us-secure-hash.html │ ├── license-zlib-net.html │ └── license-zlib.html ├── Users Guide │ ├── connector-net-connection-options.aml │ ├── connector-net-core.aml │ ├── connector-net-install.aml │ ├── connector-net-programming.aml │ ├── connector-net-support.aml │ ├── connector-net-tutorials.aml │ ├── connector-net-versions.aml │ └── media │ │ ├── connector-net-ddl-generate.png │ │ ├── connector-net-ddl-properties.png │ │ ├── connector-net-sql-editor-new-file-dialog.png │ │ ├── connector-net-sql-editor-query.png │ │ ├── connector-net-tutorials-1.png │ │ ├── connector-net-tutorials-asp-provider-profile-simple-app.png │ │ ├── connector-net-tutorials-authentication-type.png │ │ ├── connector-net-tutorials-create-user.png │ │ ├── connector-net-tutorials-security-tab.png │ │ ├── connector-net-tutorials-select-provider.png │ │ ├── connector-net-tutorials-tables.png │ │ ├── connector-net-tutorials-users-roles-tables.png │ │ ├── connector-net-visual-studio-add-connection-dialog.png │ │ ├── connector-net-visual-studio-add-connection.png │ │ ├── connector-net-visual-studio-choose-data-source.png │ │ ├── connector-net-visual-studio-choose-table-name.png │ │ ├── connector-net-visual-studio-editing-new-table.png │ │ ├── connector-net-visual-studio-entity-framework-add-entity-data-model.png │ │ ├── connector-net-visual-studio-entity-framework-app-running-1.png │ │ ├── connector-net-visual-studio-entity-framework-data-form-design.png │ │ ├── connector-net-visual-studio-entity-framework-data-source-configuration-wizard-1.png │ │ ├── connector-net-visual-studio-entity-framework-data-source-configuration-wizard-2.png │ │ ├── connector-net-visual-studio-entity-framework-data-source-configuration-wizard-3.png │ │ ├── connector-net-visual-studio-entity-framework-data-sources.png │ │ ├── connector-net-visual-studio-entity-framework-entity-data-model-diagram.png │ │ ├── connector-net-visual-studio-entity-framework-entity-data-model-wizard-1.png │ │ ├── connector-net-visual-studio-entity-framework-entity-data-model-wizard-2.png │ │ ├── connector-net-visual-studio-entity-framework-entity-data-model-wizard-3.png │ │ ├── connector-net-visual-studio-entity-framework-form-add-code-save.png │ │ ├── connector-net-visual-studio-entity-framework-form-add-code.png │ │ ├── connector-net-visual-studio-entity-framework-save-enabled.png │ │ ├── connector-net-visual-studio-entity-framework-tutorial-linq-1.png │ │ ├── connector-net-visual-studio-entity-framework-tutorial-linq-2.png │ │ ├── connector-net-visual-studio-entity-framework-tutorial-linq-3.png │ │ ├── connector-net-visual-studio-entity-framework-tutorial-linq-4.png │ │ ├── connector-net-visual-studio-entity-framework-tutorial-linq-5.png │ │ ├── connector-net-visual-studio-entity-framework-tutorial-linq-6.png │ │ ├── connector-net-visual-studio-entity-framework-tutorial-linq-7.png │ │ ├── connector-net-visual-studio-foreign-key-relationships.png │ │ ├── connector-net-visual-studio-indexes-dialog.png │ │ ├── connector-net-visual-studio-new-data-connection.png │ │ ├── connector-net-visual-studio-newly-created-table.png │ │ ├── connector-net-visual-studio-selecting-table-properties.png │ │ ├── connector-net-visual-studio-stored-procedure-edit.png │ │ ├── connector-net-visual-studio-stored-procedure-saved.png │ │ ├── connector-net-visual-studio-table-designer-menu-item.png │ │ ├── connector-net-visual-studio-table-properties-menu.png │ │ ├── connector-net-visual-studio-views-edit-sql.png │ │ ├── connector-net-visual-studio-views-sql-added.png │ │ ├── connector-net-visual-studio-views-sql-saved.png │ │ ├── connector-net-website-config-tool-membership.png │ │ ├── connector-net-website-config-tool-options.png │ │ ├── connector-net-website-config-tool-profiles.png │ │ ├── connector-net-website-config-tool-roles.png │ │ ├── connector-net-website-config-tool-session-state.png │ │ ├── connector-net-website-config-tool-string-editor.png │ │ ├── connector-net-website-config-tool-tables.png │ │ └── connector-net-website-config-tool.png ├── config.txt ├── help.shfbproj └── images.proj ├── MySQLClient-RT.sln ├── MySQLClient-VS2008.sln ├── MySQLClient-VS2010.sln ├── MySQLClient-VS2012.sln ├── MySQLClient-VS2013.sln ├── MySQLClient-VS2015.sln ├── MySQLClient-mono.sln ├── README.md ├── Release Notes.txt ├── Samples ├── Async │ └── cs │ │ ├── App.ico │ │ ├── AssemblyInfo.cs │ │ ├── Async.csproj │ │ ├── Form1.cs │ │ └── Form1.resx ├── Pocket PC │ ├── MobileExplorer │ │ ├── AssemblyInfo.cs │ │ ├── Form1.cs │ │ ├── Form1.resx │ │ ├── MobileExplorer.csdproj │ │ ├── MobileExplorer.sln │ │ ├── MobileExplorer.suo │ │ ├── NewServerDialog.cs │ │ └── NewServerDialog.resx │ └── Tester │ │ ├── FailDetails.Designer.cs │ │ ├── FailDetails.cs │ │ ├── FailDetails.resx │ │ ├── Form1.Designer.cs │ │ ├── Form1.cs │ │ ├── Form1.resx │ │ ├── MySql.Data.Tests.CF.dll.config │ │ ├── Program.cs │ │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ ├── Resources.Designer.cs │ │ ├── Resources.resx │ │ ├── green.png │ │ ├── red.png │ │ └── white.png │ │ └── Tester.csproj ├── Profiling │ └── cs │ │ ├── Form1.Designer.cs │ │ ├── Form1.cs │ │ ├── Form1.resx │ │ ├── Profiling.csproj │ │ ├── Program.cs │ │ └── Properties │ │ ├── AssemblyInfo.cs │ │ ├── Resources.Designer.cs │ │ ├── Resources.resx │ │ ├── Settings.Designer.cs │ │ └── Settings.settings └── TableEditor │ ├── CS │ ├── App.ico │ ├── AssemblyInfo.cs │ ├── Form1.cs │ ├── Form1.resx │ ├── TableEditor.build │ └── TableEditor.csproj │ └── VB │ ├── AssemblyInfo.vb │ ├── Form1.resx │ ├── Form1.vb │ ├── TableEditor.build │ └── TableEditor.vbproj ├── Server55.config ├── Server55MT.config ├── Server56.config ├── Server57.config ├── Source ├── MySql.Data.Entity │ ├── EFMySqlCommand.cs │ ├── EFMySqlDataReader.cs │ ├── Fragments │ │ ├── InputFragment.cs │ │ ├── JoinFragment.cs │ │ ├── ListFragment.cs │ │ ├── SqlFragment.cs │ │ ├── SymbolFragment.cs │ │ └── TableFragment.cs │ ├── Generators │ │ ├── DeleteGenerator.cs │ │ ├── FunctionFragment.cs │ │ ├── FunctionGenerator.cs │ │ ├── FunctionProcessor.cs │ │ ├── InsertGenerator.cs │ │ ├── Scope.cs │ │ ├── SelectGenerator.cs │ │ ├── SqlGenerator.cs │ │ ├── SymbolTable.cs │ │ └── UpdateGenerator.cs │ ├── Metadata.cs │ ├── MySql.Data.Entity.csproj │ ├── MySqlConnectionFactory.cs │ ├── MySqlDependencyResolver.cs │ ├── MySqlEFConfiguration.cs │ ├── MySqlExecutionStrategy.cs │ ├── MySqlHistoryContext.cs │ ├── MySqlLogger.cs │ ├── MySqlMigrationSqlGenerator.cs │ ├── MySqlSpatialDataReader.cs │ ├── MySqlSpatialServices.cs │ ├── Properties │ │ ├── 4.5 │ │ │ └── ProviderManifest.xml │ │ ├── AssemblyInfo.cs │ │ ├── ProviderManifest.xml │ │ ├── Resources.Designer.cs │ │ ├── Resources.resx │ │ ├── SchemaDefinition-5.0.ssdl │ │ ├── SchemaDefinition-5.1.ssdl │ │ ├── SchemaDefinition-5.5.ssdl │ │ ├── SchemaDefinition-5.6.ssdl │ │ ├── SchemaDefinition-5.7.ssdl │ │ └── SchemaMapping.msl │ ├── ProviderManifest.cs │ ├── ProviderServices.cs │ └── Statements │ │ ├── BaseStatement.cs │ │ ├── DeleteStatement.cs │ │ ├── InsertStatement.cs │ │ ├── SelectStatement.cs │ │ └── UpdateStatement.cs ├── MySql.Data │ ├── Authentication │ │ ├── AuthenticationManager.cs │ │ ├── MySQLAuthenticationPlugin.cs │ │ ├── NativePasswordPlugins.cs │ │ ├── Sha256AuthenticationPlugin.cs │ │ └── WindowsAuthenticationPlugin.cs │ ├── BulkLoader.cs │ ├── CharSetMap.cs │ ├── CommandBuilder.cs │ ├── CompressedStream.cs │ ├── Connection.cs │ ├── Crypt.cs │ ├── Driver.cs │ ├── Exception.cs │ ├── Field.cs │ ├── ISSchemaProvider.cs │ ├── Installer.cs │ ├── Interceptors │ │ ├── CommandInterceptor.cs │ │ ├── ExceptionInterceptor.cs │ │ └── Interceptor.cs │ ├── Memcached │ │ ├── BinaryClient.cs │ │ ├── Client.cs │ │ ├── MemcachedException.cs │ │ └── TextClient.cs │ ├── MySql.Data.CF.csproj │ ├── MySql.Data.RT.csproj │ ├── MySql.Data.csproj │ ├── MySql.Data.xproj │ ├── MySqlClientFactory.cs │ ├── MySqlClientPermission.cs │ ├── MySqlClientPermissionAttribute.cs │ ├── MySqlConfiguration.cs │ ├── MySqlConnectionStringBuilder.cs │ ├── MySqlError.cs │ ├── MySqlHelper.cs │ ├── MySqlPacket.cs │ ├── MySqlPool.cs │ ├── MySqlPoolManager.cs │ ├── MySqlPromotableTransaction.cs │ ├── MySqlScript.cs │ ├── MySqlSecurityPermission.cs │ ├── MySqlStream.cs │ ├── MysqlDefs.cs │ ├── NativeDriver.cs │ ├── NuGet.Config │ ├── PerformanceMonitor.cs │ ├── PreparableStatement.cs │ ├── ProcedureCache.cs │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ ├── ReservedWords.txt │ │ ├── Resources.Designer.cs │ │ ├── Resources.resx │ │ ├── VersionInfo.cs │ │ └── keywords.txt │ ├── Provider │ │ └── MySql.Data.VS2010.csproj │ ├── Replication │ │ ├── ReplicationConfiguration.cs │ │ ├── ReplicationManager.cs │ │ ├── ReplicationRoundRobinServerGroup.cs │ │ ├── ReplicationServer.cs │ │ └── ReplicationServerGroup.cs │ ├── ResultSet.cs │ ├── Runtime.cs │ ├── Schema.cs │ ├── SchemaProvider.cs │ ├── Statement.cs │ ├── StoredProcedure.cs │ ├── SystemPerformanceMonitor.cs │ ├── TableCache.cs │ ├── TimedStream.cs │ ├── TracingDriver.cs │ ├── Types │ │ ├── MetaData.cs │ │ ├── MySqlBinary.cs │ │ ├── MySqlBit.cs │ │ ├── MySqlByte.cs │ │ ├── MySqlConversionException.cs │ │ ├── MySqlDateTime.cs │ │ ├── MySqlDecimal.cs │ │ ├── MySqlDouble.cs │ │ ├── MySqlGeometry.cs │ │ ├── MySqlGuid.cs │ │ ├── MySqlInt16.cs │ │ ├── MySqlInt32.cs │ │ ├── MySqlInt64.cs │ │ ├── MySqlSingle.cs │ │ ├── MySqlString.cs │ │ ├── MySqlTime.cs │ │ ├── MySqlUByte.cs │ │ ├── MySqlUInt16.cs │ │ ├── MySqlUInt32.cs │ │ ├── MySqlUInt64.cs │ │ └── MySqlValue.cs │ ├── base │ │ ├── Attributes.cs │ │ ├── BaseTransaction.cs │ │ ├── DbConnectionStringBuilder.cs │ │ ├── DbException.cs │ │ ├── Enums.cs │ │ ├── Extras.cs │ │ ├── ICloneable.cs │ │ ├── MySqlNullValueException.cs │ │ ├── StateChangeEventArgs.cs │ │ └── ThreadAbortException.cs │ ├── bin │ │ └── RT │ │ │ └── Release │ │ │ ├── MySql.Data.RT.dll │ │ │ ├── MySql.Data.RT.pdb │ │ │ └── MySql.Data.RT.pri │ ├── cf │ │ ├── BufferedStream.cs │ │ ├── MissingAttributes.cs │ │ └── WinCE.cs │ ├── command.cs │ ├── common │ │ ├── Cache.cs │ │ ├── ContextString.cs │ │ ├── LowResolutionStopwatch.cs │ │ ├── MyNetworkStream-RT.cs │ │ ├── MyNetworkStream.cs │ │ ├── MySqlTokenizer.cs │ │ ├── NamedPipeStream.cs │ │ ├── NativeMethods.cs │ │ ├── Platform.cs │ │ ├── QueryNormalizer.cs │ │ ├── SHA1.cs │ │ ├── SharedMemoryStream.cs │ │ ├── SocketStream.cs │ │ ├── StreamCreator.cs │ │ ├── StringUtility.cs │ │ └── Version.cs │ ├── dataadapter.cs │ ├── datareader.cs │ ├── docs │ │ ├── MySqlCommand.xml │ │ ├── MySqlCommandBuilder.xml │ │ ├── MySqlConnection.xml │ │ ├── MySqlConnectionStringBuilder.xml │ │ ├── MySqlDataAdapter.xml │ │ ├── MySqlDataReader.xml │ │ ├── MySqlException.xml │ │ ├── MySqlHelper.xml │ │ ├── MySqlParameter.xml │ │ ├── MySqlParameterCollection.xml │ │ └── MySqlTransaction.xml │ ├── extensions │ │ ├── NonRT │ │ │ ├── MySqlCommand.cs │ │ │ ├── MySqlConnection.cs │ │ │ ├── MySqlConnectionStringBuilder.cs │ │ │ ├── MySqlDataReader.cs │ │ │ ├── MySqlDateTime.cs │ │ │ ├── MySqlParameter.cs │ │ │ ├── MySqlParameterCollection.cs │ │ │ ├── MySqlTrace.cs │ │ │ └── MySqlTransaction.cs │ │ └── RT │ │ │ ├── ArrayList.cs │ │ │ ├── BackgroundWorker.cs │ │ │ ├── DbNull.cs │ │ │ ├── Encoding.cs │ │ │ ├── ExtensionMethods.cs │ │ │ ├── FileStream.cs │ │ │ ├── MySqlCommand.cs │ │ │ ├── MySqlConnection.cs │ │ │ ├── MySqlConnectionStringBuilder.cs │ │ │ ├── MySqlDataReader.cs │ │ │ ├── MySqlParameter.cs │ │ │ ├── MySqlParameterCollection.cs │ │ │ ├── MySqlTrace.cs │ │ │ ├── MySqlTransaction.cs │ │ │ ├── RtBitArray.cs │ │ │ ├── SHA1.cs │ │ │ ├── Thread.cs │ │ │ └── Timer.cs │ ├── parameter.cs │ ├── parameter_collection.cs │ ├── project.json │ ├── transaction.cs │ └── zlib │ │ ├── Adler32.cs │ │ ├── Deflate.cs │ │ ├── InfBlocks.cs │ │ ├── InfCodes.cs │ │ ├── InfTree.cs │ │ ├── Inflate.cs │ │ ├── StaticTree.cs │ │ ├── SupportClass.cs │ │ ├── Tree.cs │ │ ├── ZInputStream.cs │ │ ├── ZOutputStream.cs │ │ ├── ZStream.cs │ │ ├── ZStreamException.cs │ │ └── Zlib.cs ├── MySql.Web │ ├── Application.cs │ ├── Install.cs │ ├── MembershipProvider.cs │ ├── MySql.Web.csproj │ ├── MySqlDatabaseWrapper.cs │ ├── MySqlWebSecurity.cs │ ├── PersonalizationConnectionHelper.cs │ ├── PersonalizationProvider.cs │ ├── PersonalizationProviderProcedures.cs │ ├── ProfileProvider.cs │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ ├── Resources.Designer.cs │ │ ├── Resources.resx │ │ ├── schema1.sql │ │ ├── schema10.sql │ │ ├── schema11.sql │ │ ├── schema2.sql │ │ ├── schema3.sql │ │ ├── schema4.sql │ │ ├── schema5.sql │ │ ├── schema6.sql │ │ ├── schema7.sql │ │ ├── schema8.sql │ │ └── schema9.sql │ ├── RoleProvider.cs │ ├── Runtime.cs │ ├── SchemaManager.cs │ ├── SessionProvider.cs │ ├── SimpleMembershipProvider.cs │ ├── SimpleRoleProvider.cs │ └── SiteMapProvider.cs └── Plugins │ └── MySql.Fabric │ ├── Enums.cs │ ├── Extensions.cs │ ├── FabricGroup.cs │ ├── FabricServer.cs │ ├── FabricServerGroup.cs │ ├── FabricShardIndex.cs │ ├── FabricShardTable.cs │ ├── MySql.Fabric.Plugin.csproj │ ├── MySqlFabricException.cs │ ├── Properties │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ └── Resources.resx │ └── XmlRpcRequest.cs ├── Tests ├── MySql.Data.Entity.CodeFirst.Tests │ ├── App.config │ ├── CodeFirstTests.cs │ ├── Dinosauria.cs │ ├── ExpressionTests.cs │ ├── Movie.cs │ ├── MovieContextCodeBasedConfiguration.cs │ ├── MySql.Data.Entity.CodeFirst.Tests.csproj │ ├── PromotionsDB.cs │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ ├── SQLSyntax.Designer.cs │ │ ├── SQLSyntax.resx │ │ ├── SakilaDbDataScript.sql │ │ └── SetupSakilaDb.sql │ ├── SakilaModel │ │ ├── SakilaDb.cs │ │ ├── actor.cs │ │ ├── actor_info.cs │ │ ├── address.cs │ │ ├── category.cs │ │ ├── city.cs │ │ ├── country.cs │ │ ├── customer.cs │ │ ├── customer_list.cs │ │ ├── film.cs │ │ ├── film_actor.cs │ │ ├── film_category.cs │ │ ├── film_list.cs │ │ ├── film_text.cs │ │ ├── inventory.cs │ │ ├── language.cs │ │ ├── nicer_but_slower_film_list.cs │ │ ├── payment.cs │ │ ├── rental.cs │ │ ├── sales_by_film_category.cs │ │ ├── sales_by_store.cs │ │ ├── staff.cs │ │ ├── staff_list.cs │ │ └── store.cs │ ├── SetUpCodeFirstTests.cs │ ├── Ship.cs │ ├── SiteDB.cs │ └── Vehicle.cs ├── MySql.Data.Entity.Migrations.Tests │ ├── App.config │ ├── BlogsModel.cs │ ├── EF6 │ │ └── App.config │ ├── MyConfiguration.cs │ ├── MySql.Data.Entity.Migrations.Tests.csproj │ ├── MySqlMigrationsCodeGeneratorTests.cs │ ├── MySqlMigrationsTests.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ └── SetUpMigrationsTests.cs ├── MySql.Data.Entity.Tests │ ├── AggregateOperators.cs │ ├── App.Config │ ├── CanonicalFunctions.cs │ ├── DataTypeTests.cs │ ├── DatesTypesTests.cs │ ├── DeleteTests.cs │ ├── EF6 │ │ └── App.Config │ ├── EdmxArtifactsRenamingv3.5.targets │ ├── EdmxArtifactsRenamingv4.x.targets │ ├── InsertTests.cs │ ├── JoinTests.cs │ ├── LinqTests.cs │ ├── ModelFirstModel1.edmx.sql │ ├── MyConfiguration.cs │ ├── MyCustomTasks.dll │ ├── MyCustomTasks.pdb │ ├── MySql.Data.Entity.Tests.csproj │ ├── OrderingAndGrouping.cs │ ├── Paging.cs │ ├── ProceduresAndFunctions.cs │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ ├── Resources.resx │ │ ├── procs.sql │ │ └── schema.sql │ ├── ProviderManifestTests.cs │ ├── ProviderServicesTests.cs │ ├── RelationalOperators.cs │ ├── RestrictionOperators.cs │ ├── SchemaInformation.cs │ ├── SetOperators.cs │ ├── SetUpEntityTests.cs │ ├── UpdateTests.cs │ ├── Wizard.cs │ ├── v3.5 │ │ ├── Model1.Designer.cs │ │ ├── Model1.edmx │ │ ├── Model2.Designer.cs │ │ ├── Model2.edmx │ │ ├── Model3.Designer.cs │ │ ├── Model3.edmx │ │ ├── ModelFirstModel1.Designer.cs │ │ ├── ModelFirstModel1.edmx │ │ ├── SQLSyntax.Designer.cs │ │ ├── SQLSyntax.resx │ │ ├── TestModel.Designer.cs │ │ ├── TestModel.edmx │ │ ├── booksModel.Designer.cs │ │ └── booksModel.edmx │ └── v4.x │ │ ├── BooksModel.Designer.cs │ │ ├── BooksModel.edmx │ │ ├── DatesTypesModel.Designer.cs │ │ ├── DatesTypesModel.edmx │ │ ├── Model1.Designer.cs │ │ ├── Model1.edmx │ │ ├── Model2.Designer.cs │ │ ├── Model2.edmx │ │ ├── Model3.Designer.cs │ │ ├── Model3.edmx │ │ ├── ModelFirstModel1.Designer.cs │ │ ├── ModelFirstModel1.edmx │ │ ├── SQLSyntax.Designer.cs │ │ ├── SQLSyntax.resx │ │ ├── TestModel.Designer.cs │ │ └── TestModel.edmx ├── MySql.Data.Tests.Stress │ ├── MySql.Data.Tests.Stress.csproj │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── SetUp.cs │ ├── StressTests.cs │ ├── StressTestsPipe.cs │ ├── StressTestsPipeCompressed.cs │ ├── StressTestsSharedMemory.cs │ ├── StressTestsSharedMemoryCompressed.cs │ └── StressTestsSocketCompressed.cs ├── MySql.Data.Tests │ ├── AsyncTests.cs │ ├── BlobTests.cs │ ├── BlobTestsPipe.cs │ ├── BlobTestsPipeCompressed.cs │ ├── BlobTestsSharedMemory.cs │ ├── BlobTestsSharedMemoryCompressed.cs │ ├── BlobTestsSocketCompressed.cs │ ├── CharacterSetTests.cs │ ├── CommandTests.cs │ ├── ConnectionTests.cs │ ├── CultureTests.cs │ ├── DataReaderTests.cs │ ├── DataTypeTests.cs │ ├── DateTimeTests.cs │ ├── EventTests.cs │ ├── ExceptionTests.cs │ ├── GenericListener.cs │ ├── GetSchemaTests.cs │ ├── InstallerTests.cs │ ├── InterfaceTests.cs │ ├── LanguageTests.cs │ ├── LoggingTests.cs │ ├── MediumTrust │ │ ├── MediumTrustDomain.cs │ │ ├── MediumTrustFixtureAttribute.cs │ │ ├── MediumTrustTestClassCommand.cs │ │ ├── MediumTrustTestCommand.cs │ │ ├── MySql.MediumTrustsTests.cs │ │ └── MySqlClientPermissionTests.cs │ ├── Memcached.cs │ ├── MySQLHelperTests.cs │ ├── MySql.Data.CF.Tests.csproj │ ├── MySql.Data.RT.Tests.csproj │ ├── MySql.Data.Tests.csproj │ ├── MySqlBulkLoaderTests.cs │ ├── MySqlCommandBuilderTests.cs │ ├── MySqlCommandTests.cs │ ├── MySqlCommandTestsPipe.cs │ ├── MySqlCommandTestsPipeCompressed.cs │ ├── MySqlCommandTestsSharedMemory.cs │ ├── MySqlCommandTestsSharedMemoryCompressed.cs │ ├── MySqlCommandTestsSocketCompressed.cs │ ├── MySqlConnectionStringBuilderTests.cs │ ├── MySqlConnectionTests.cs │ ├── MySqlDataAdapterTests.cs │ ├── MySqlDataReaderTests.cs │ ├── OutputParametersBatch.cs │ ├── OutputParametersBatchPrepared.cs │ ├── OutputParametersNoBatch.cs │ ├── OutputParametersNoBatchPrepared.cs │ ├── ParameterTests.cs │ ├── PartialTrustSandbox.cs │ ├── PerfMonTests.cs │ ├── PoolingTests.cs │ ├── PreparedStatements.cs │ ├── PreparedStatementsPipe.cs │ ├── PreparedStatementsPipeCompressed.cs │ ├── PreparedStatementsSharedMemory.cs │ ├── PreparedStatementsSharedMemoryCompressed.cs │ ├── PreparedStatementsSocketCompressed.cs │ ├── ProcedureParameterTests.cs │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ └── Setup.sql │ ├── ReplicationTests.cs │ ├── ScriptExecution.cs │ ├── SetUp.cs │ ├── SimpleTransactions.cs │ ├── SqlServerMode.cs │ ├── SqlTokenizer.cs │ ├── StoredProcedure.cs │ ├── StoredProcedureWithAccess.cs │ ├── Syntax.cs │ ├── Syntax2.cs │ ├── TableCaching.cs │ ├── Threading.cs │ ├── ThreadingTests.cs │ ├── TimeoutAndCancel.cs │ ├── TimeoutAndCancelPipe.cs │ ├── TimeoutAndCancelSharedMemory.cs │ ├── TimeoutAndCancelSocketCompressed.cs │ ├── Tokenizer.cs │ ├── Transactions.cs │ ├── TypeTests.cs │ ├── UsageAdvisorTests.cs │ ├── Utils.cs │ ├── certificates │ │ ├── ca-cert.pem │ │ ├── ca-key.pem │ │ ├── client-cert.pem │ │ ├── client-key.pem │ │ ├── server-cert.pem │ │ └── server-key.pem │ └── client.pfx ├── MySql.Replication.Tests │ ├── App.config │ ├── BaseTest.cs │ ├── MySql.Replication.Tests.csproj │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ ├── Resources.Designer.cs │ │ └── Resources.resx │ ├── ReplicationTest.cs │ ├── Resources │ │ ├── 01_Startup_root_script.sql │ │ └── 02_Startup_script.sql │ └── SetUp.cs └── MySql.Web.Tests │ ├── App.config │ ├── MySql.Web.Tests.csproj │ ├── PersonalizationTests.cs │ ├── ProfileTests.cs │ ├── Properties │ └── AssemblyInfo.cs │ ├── RoleManagement.cs │ ├── SchemaManagerTests.cs │ ├── SchemaTests.cs │ ├── SessionLocking │ ├── Global.asax │ ├── Global.asax.cs │ ├── InitSessionLocking.aspx │ ├── InitSessionLocking.aspx.cs │ ├── InitSessionLocking.aspx.designer.cs │ ├── Web.config │ ├── read.aspx │ ├── read.aspx.cs │ ├── read.aspx.designer.cs │ ├── web_config_src.txt │ ├── write.aspx │ ├── write.aspx.cs │ ├── write.aspx.designer.cs │ ├── write2.aspx │ ├── write2.aspx.cs │ └── write2.aspx.designer.cs │ ├── SessionLockingBuild.bat │ ├── SessionTests.cs │ ├── SetUpWeb.cs │ ├── SimpleMembership.cs │ ├── SiteMapTests.cs │ ├── TestProfile.cs │ └── UserManagement.cs ├── appveyor.yml └── global.json /.travis.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # Configuration taken and modified from https://github.com/maxmind/MaxMind-DB-Reader-dotnet/blob/master/.travis.yml 3 | sudo: false 4 | language: csharp 5 | # dotnet cli requires Ubuntu 14.04 6 | sudo: required 7 | dist: trusty 8 | 9 | # dotnet cli requires OSX 10.10 10 | osx_image: xcode7.1 11 | 12 | addons: 13 | apt: 14 | packages: 15 | - libunwind8 16 | 17 | os: 18 | - osx 19 | - linux 20 | 21 | env: 22 | matrix: 23 | - CLI_VERSION: Latest 24 | Configuration: Debug 25 | Framework: netcoreapp1.0 26 | - CLI_VERSION: Latest 27 | Configuration: Release 28 | Framework: netcoreapp1.0 29 | 30 | before_install: 31 | - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install openssl && brew link --force openssl ; fi 32 | # Download script to install dotnet cli 33 | - curl -sSL https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0-preview2/scripts/obtain/dotnet-install.sh | bash /dev/stdin --version 1.0.0-preview2-003121 --install-dir ~/dotnet 34 | 35 | - export DOTNET_INSTALL_DIR="~/dotnet" 36 | 37 | # Add dotnet to PATH 38 | - export PATH="$DOTNET_INSTALL_DIR:$PATH" 39 | 40 | install: 41 | - git submodule update --init --recursive 42 | - which dotnet; 43 | if [ $? -eq 0 ]; then 44 | echo "Using dotnet:"; 45 | dotnet --info; 46 | else 47 | echo "dotnet.exe not found" 48 | exit 1; 49 | fi 50 | 51 | # Restore dependencies 52 | - dotnet restore 53 | 54 | - FrameworkLibsMoniker="netstandard1.3" 55 | 56 | # Build projects 57 | - dotnet build -c $Configuration -f $FrameworkLibsMoniker ./Source/MySql.Data 58 | 59 | script: 60 | - echo "This would be a good time to run tests!" 61 | -------------------------------------------------------------------------------- /Documentation/CodeExamples/MembershipCodeExample1.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /Documentation/CodeExamples/MembershipCodeExample2.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /Documentation/CodeExamples/RoleCodeExample1.xml: -------------------------------------------------------------------------------- 1 |  3 | 4 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /Documentation/CollectionFiles/COL_Master.HxC: -------------------------------------------------------------------------------- 1 |  2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Documentation/CollectionFiles/COL_Master.HxT: -------------------------------------------------------------------------------- 1 |  2 | 3 | 6 | 7 | -------------------------------------------------------------------------------- /Documentation/CollectionFiles/COL_Master_A.HxK: -------------------------------------------------------------------------------- 1 |  2 | 3 | -------------------------------------------------------------------------------- /Documentation/CollectionFiles/COL_Master_F.HxK: -------------------------------------------------------------------------------- 1 |  2 | 3 | -------------------------------------------------------------------------------- /Documentation/CollectionFiles/COL_Master_K.HxK: -------------------------------------------------------------------------------- 1 |  2 | 3 | -------------------------------------------------------------------------------- /Documentation/CollectionFiles/COL_Master_N.HxK: -------------------------------------------------------------------------------- 1 |  2 | 3 | -------------------------------------------------------------------------------- /Documentation/CollectionFiles/FixRegTables.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/CollectionFiles/FixRegTables.exe -------------------------------------------------------------------------------- /Documentation/CollectionFiles/MSHelp2_RegTables__RTL_---_---.msm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/CollectionFiles/MSHelp2_RegTables__RTL_---_---.msm -------------------------------------------------------------------------------- /Documentation/Layout.content: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-ddl-generate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-ddl-generate.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-ddl-properties.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-ddl-properties.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-sql-editor-new-file-dialog.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-sql-editor-new-file-dialog.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-sql-editor-query.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-sql-editor-query.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-tutorials-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-tutorials-1.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-tutorials-asp-provider-profile-simple-app.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-tutorials-asp-provider-profile-simple-app.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-tutorials-authentication-type.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-tutorials-authentication-type.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-tutorials-create-user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-tutorials-create-user.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-tutorials-security-tab.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-tutorials-security-tab.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-tutorials-select-provider.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-tutorials-select-provider.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-tutorials-tables.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-tutorials-tables.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-tutorials-users-roles-tables.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-tutorials-users-roles-tables.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-visual-studio-add-connection-dialog.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-visual-studio-add-connection-dialog.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-visual-studio-add-connection.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-visual-studio-add-connection.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-visual-studio-choose-data-source.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-visual-studio-choose-data-source.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-visual-studio-choose-table-name.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-visual-studio-choose-table-name.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-visual-studio-editing-new-table.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-visual-studio-editing-new-table.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-visual-studio-entity-framework-add-entity-data-model.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-visual-studio-entity-framework-add-entity-data-model.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-visual-studio-entity-framework-app-running-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-visual-studio-entity-framework-app-running-1.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-visual-studio-entity-framework-data-form-design.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-visual-studio-entity-framework-data-form-design.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-visual-studio-entity-framework-data-source-configuration-wizard-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-visual-studio-entity-framework-data-source-configuration-wizard-1.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-visual-studio-entity-framework-data-source-configuration-wizard-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-visual-studio-entity-framework-data-source-configuration-wizard-2.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-visual-studio-entity-framework-data-source-configuration-wizard-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-visual-studio-entity-framework-data-source-configuration-wizard-3.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-visual-studio-entity-framework-data-sources.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-visual-studio-entity-framework-data-sources.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-visual-studio-entity-framework-entity-data-model-diagram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-visual-studio-entity-framework-entity-data-model-diagram.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-visual-studio-entity-framework-entity-data-model-wizard-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-visual-studio-entity-framework-entity-data-model-wizard-1.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-visual-studio-entity-framework-entity-data-model-wizard-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-visual-studio-entity-framework-entity-data-model-wizard-2.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-visual-studio-entity-framework-entity-data-model-wizard-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-visual-studio-entity-framework-entity-data-model-wizard-3.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-visual-studio-entity-framework-form-add-code-save.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-visual-studio-entity-framework-form-add-code-save.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-visual-studio-entity-framework-form-add-code.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-visual-studio-entity-framework-form-add-code.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-visual-studio-entity-framework-save-enabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-visual-studio-entity-framework-save-enabled.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-visual-studio-entity-framework-tutorial-linq-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-visual-studio-entity-framework-tutorial-linq-1.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-visual-studio-entity-framework-tutorial-linq-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-visual-studio-entity-framework-tutorial-linq-2.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-visual-studio-entity-framework-tutorial-linq-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-visual-studio-entity-framework-tutorial-linq-3.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-visual-studio-entity-framework-tutorial-linq-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-visual-studio-entity-framework-tutorial-linq-4.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-visual-studio-entity-framework-tutorial-linq-5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-visual-studio-entity-framework-tutorial-linq-5.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-visual-studio-entity-framework-tutorial-linq-6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-visual-studio-entity-framework-tutorial-linq-6.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-visual-studio-entity-framework-tutorial-linq-7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-visual-studio-entity-framework-tutorial-linq-7.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-visual-studio-foreign-key-relationships.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-visual-studio-foreign-key-relationships.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-visual-studio-indexes-dialog.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-visual-studio-indexes-dialog.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-visual-studio-new-data-connection.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-visual-studio-new-data-connection.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-visual-studio-newly-created-table.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-visual-studio-newly-created-table.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-visual-studio-selecting-table-properties.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-visual-studio-selecting-table-properties.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-visual-studio-stored-procedure-edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-visual-studio-stored-procedure-edit.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-visual-studio-stored-procedure-saved.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-visual-studio-stored-procedure-saved.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-visual-studio-table-designer-menu-item.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-visual-studio-table-designer-menu-item.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-visual-studio-table-properties-menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-visual-studio-table-properties-menu.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-visual-studio-views-edit-sql.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-visual-studio-views-edit-sql.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-visual-studio-views-sql-added.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-visual-studio-views-sql-added.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-visual-studio-views-sql-saved.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-visual-studio-views-sql-saved.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-website-config-tool-membership.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-website-config-tool-membership.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-website-config-tool-options.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-website-config-tool-options.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-website-config-tool-profiles.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-website-config-tool-profiles.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-website-config-tool-roles.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-website-config-tool-roles.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-website-config-tool-session-state.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-website-config-tool-session-state.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-website-config-tool-string-editor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-website-config-tool-string-editor.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-website-config-tool-tables.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-website-config-tool-tables.png -------------------------------------------------------------------------------- /Documentation/Users Guide/media/connector-net-website-config-tool.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Documentation/Users Guide/media/connector-net-website-config-tool.png -------------------------------------------------------------------------------- /Documentation/config.txt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /MySQLClient-VS2015.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 14 4 | VisualStudioVersion = 14.0.25123.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "MySql.Data", "Source\MySql.Data\MySql.Data.xproj", "{8517D716-06E2-4AE1-B7D9-00025389A2FE}" 7 | EndProject 8 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{98BB0CC7-59B3-40B0-B74D-ED2B9BBF3C31}" 9 | ProjectSection(SolutionItems) = preProject 10 | global.json = global.json 11 | EndProjectSection 12 | EndProject 13 | Global 14 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 15 | Debug|Any CPU = Debug|Any CPU 16 | Release|Any CPU = Release|Any CPU 17 | EndGlobalSection 18 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 19 | {8517D716-06E2-4AE1-B7D9-00025389A2FE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 20 | {8517D716-06E2-4AE1-B7D9-00025389A2FE}.Debug|Any CPU.Build.0 = Debug|Any CPU 21 | {8517D716-06E2-4AE1-B7D9-00025389A2FE}.Release|Any CPU.ActiveCfg = Release|Any CPU 22 | {8517D716-06E2-4AE1-B7D9-00025389A2FE}.Release|Any CPU.Build.0 = Release|Any CPU 23 | EndGlobalSection 24 | GlobalSection(SolutionProperties) = preSolution 25 | HideSolutionNode = FALSE 26 | EndGlobalSection 27 | EndGlobal 28 | -------------------------------------------------------------------------------- /Release Notes.txt: -------------------------------------------------------------------------------- 1 | Connector/Net 6.9 Release Notes 2 | ------------------------------------ 3 | 4 | Welcome to the release notes for Connector/Net 6.9 5 | 6 | What's new in 6.9 7 | -------------------- 8 | 9 | - Simple Membership Web Provider 10 | - Site Map Web Provider 11 | - Personalization Web Provider 12 | - MySql Fabric support 13 | 14 | 15 | Be sure and check the documentation for more information on these new features. -------------------------------------------------------------------------------- /Samples/Async/cs/App.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Samples/Async/cs/App.ico -------------------------------------------------------------------------------- /Samples/Pocket PC/MobileExplorer/MobileExplorer.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 8.00 2 | Project("{20D4826A-C6FA-45DB-90F4-C717570B9F32}") = "MobileExplorer", "MobileExplorer.csdproj", "{64CC840B-DDA1-4CBB-98FC-FC19FF591C3C}" 3 | ProjectSection(ProjectDependencies) = postProject 4 | EndProjectSection 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfiguration) = preSolution 8 | Debug = Debug 9 | Release = Release 10 | EndGlobalSection 11 | GlobalSection(ProjectConfiguration) = postSolution 12 | {64CC840B-DDA1-4CBB-98FC-FC19FF591C3C}.Debug.ActiveCfg = Debug|Windows CE 13 | {64CC840B-DDA1-4CBB-98FC-FC19FF591C3C}.Debug.Build.0 = Debug|Windows CE 14 | {64CC840B-DDA1-4CBB-98FC-FC19FF591C3C}.Debug.Deploy.0 = Debug|Windows CE 15 | {64CC840B-DDA1-4CBB-98FC-FC19FF591C3C}.Release.ActiveCfg = Release|Windows CE 16 | {64CC840B-DDA1-4CBB-98FC-FC19FF591C3C}.Release.Build.0 = Release|Windows CE 17 | {64CC840B-DDA1-4CBB-98FC-FC19FF591C3C}.Release.Deploy.0 = Release|Windows CE 18 | EndGlobalSection 19 | GlobalSection(ExtensibilityGlobals) = postSolution 20 | EndGlobalSection 21 | GlobalSection(ExtensibilityAddIns) = postSolution 22 | EndGlobalSection 23 | EndGlobal 24 | -------------------------------------------------------------------------------- /Samples/Pocket PC/MobileExplorer/MobileExplorer.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Samples/Pocket PC/MobileExplorer/MobileExplorer.suo -------------------------------------------------------------------------------- /Samples/Pocket PC/Tester/FailDetails.cs: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2004-2007 MySQL AB 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | using System.Collections.Generic; 25 | using System.ComponentModel; 26 | using System.Data; 27 | using System.Drawing; 28 | using System.Text; 29 | using System.Windows.Forms; 30 | 31 | namespace DeviceApplication1 32 | { 33 | public partial class FailDetails : Form 34 | { 35 | public FailDetails() 36 | { 37 | InitializeComponent(); 38 | } 39 | 40 | public string Message 41 | { 42 | set { msg.Text = value; } 43 | } 44 | 45 | public string Trace 46 | { 47 | set { trace.Text = value; } 48 | } 49 | } 50 | } -------------------------------------------------------------------------------- /Samples/Pocket PC/Tester/MySql.Data.Tests.CF.dll.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Samples/Pocket PC/Tester/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Windows.Forms; 4 | 5 | namespace DeviceApplication1 6 | { 7 | static class Program 8 | { 9 | /// 10 | /// The main entry point for the application. 11 | /// 12 | [MTAThread] 13 | static void Main() 14 | { 15 | Application.Run(new MainForm()); 16 | } 17 | } 18 | } -------------------------------------------------------------------------------- /Samples/Pocket PC/Tester/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("DeviceApplication1")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Microsoft")] 12 | [assembly: AssemblyProduct("DeviceApplication1")] 13 | [assembly: AssemblyCopyright("Copyright © Microsoft 2007")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("add8ee1a-806b-4fba-bd00-1507ed0a2087")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | [assembly: AssemblyVersion("1.0.0.0")] 33 | 34 | -------------------------------------------------------------------------------- /Samples/Pocket PC/Tester/Properties/green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Samples/Pocket PC/Tester/Properties/green.png -------------------------------------------------------------------------------- /Samples/Pocket PC/Tester/Properties/red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Samples/Pocket PC/Tester/Properties/red.png -------------------------------------------------------------------------------- /Samples/Pocket PC/Tester/Properties/white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Samples/Pocket PC/Tester/Properties/white.png -------------------------------------------------------------------------------- /Samples/Profiling/cs/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Windows.Forms; 4 | 5 | namespace Profiling 6 | { 7 | static class Program 8 | { 9 | /// 10 | /// The main entry point for the application. 11 | /// 12 | [STAThread] 13 | static void Main() 14 | { 15 | Application.EnableVisualStyles(); 16 | Application.SetCompatibleTextRenderingDefault(false); 17 | Application.Run(new Form1()); 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /Samples/Profiling/cs/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("Profiling")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("Profiling")] 13 | [assembly: AssemblyCopyright("Copyright © 2006")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("2c383097-c402-454b-bb02-57d84d96a540")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | [assembly: AssemblyVersion("1.0.0.0")] 33 | [assembly: AssemblyFileVersion("1.0.0.0")] 34 | -------------------------------------------------------------------------------- /Samples/Profiling/cs/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:2.0.50727.112 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Profiling.Properties 12 | { 13 | 14 | 15 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 16 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "8.0.0.0")] 17 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase 18 | { 19 | 20 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 21 | 22 | public static Settings Default 23 | { 24 | get 25 | { 26 | return defaultInstance; 27 | } 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Samples/Profiling/cs/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Samples/TableEditor/CS/App.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Samples/TableEditor/CS/App.ico -------------------------------------------------------------------------------- /Samples/TableEditor/CS/TableEditor.build: -------------------------------------------------------------------------------- 1 | 2 | TableEditor sample 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 | -------------------------------------------------------------------------------- /Samples/TableEditor/VB/TableEditor.build: -------------------------------------------------------------------------------- 1 | 2 | TableEditor sample 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 | -------------------------------------------------------------------------------- /Source/MySql.Data.Entity/MySqlConnectionFactory.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2008, 2012, Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | using System.Collections.Generic; 25 | using System.Data.Common; 26 | using System.Data.Entity.Infrastructure; 27 | using System.Data.Entity.Migrations; 28 | using System.Linq; 29 | using System.Text; 30 | using MySql.Data.MySqlClient; 31 | 32 | namespace MySql.Data.Entity 33 | { 34 | /// 35 | /// Used for creating connections in Code First 4.3. 36 | /// 37 | public class MySqlConnectionFactory : IDbConnectionFactory 38 | { 39 | public DbConnection CreateConnection(string connectionString) 40 | { 41 | return new MySqlConnection(connectionString); 42 | } 43 | } 44 | } -------------------------------------------------------------------------------- /Source/MySql.Data.Entity/Statements/DeleteStatement.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2008, 2013, Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System.Text; 24 | namespace MySql.Data.Entity 25 | { 26 | class DeleteStatement : SqlFragment 27 | { 28 | public SqlFragment Target { get; set; } 29 | public SqlFragment Where { get; set; } 30 | 31 | public override void WriteSql(StringBuilder sql) 32 | { 33 | sql.Append("DELETE FROM "); 34 | Target.WriteSql(sql); 35 | if (Where != null) 36 | { 37 | sql.Append(" WHERE "); 38 | Where.WriteSql(sql); 39 | } 40 | } 41 | 42 | internal override void Accept(SqlFragmentVisitor visitor) 43 | { 44 | throw new System.NotImplementedException(); 45 | } 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /Source/MySql.Data/CharSetMap.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Source/MySql.Data/CharSetMap.cs -------------------------------------------------------------------------------- /Source/MySql.Data/Field.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Source/MySql.Data/Field.cs -------------------------------------------------------------------------------- /Source/MySql.Data/Memcached/MemcachedException.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | namespace MySql.Data.MySqlClient.Memcached 24 | { 25 | using System; 26 | using System.Collections.Generic; 27 | using System.Text; 28 | 29 | /// 30 | /// The base exception class for all Memcached exceptions. 31 | /// 32 | public class MemcachedException : Exception 33 | { 34 | public MemcachedException(string msg) 35 | : base(msg) 36 | { 37 | } 38 | 39 | public MemcachedException(string msg, Exception e) 40 | : base(msg, e) 41 | { 42 | } 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /Source/MySql.Data/MySql.Data.xproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 14.0.25123 5 | $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) 6 | 7 | 8 | 9 | 8517d716-06e2-4ae1-b7d9-00025389a2fe 10 | MySql.Data 11 | .\obj 12 | .\bin\ 13 | 14 | 15 | 16 | 2.0 17 | 18 | 19 | -------------------------------------------------------------------------------- /Source/MySql.Data/MySqlError.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Source/MySql.Data/MySqlError.cs -------------------------------------------------------------------------------- /Source/MySql.Data/MySqlPool.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Source/MySql.Data/MySqlPool.cs -------------------------------------------------------------------------------- /Source/MySql.Data/MySqlScript.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Source/MySql.Data/MySqlScript.cs -------------------------------------------------------------------------------- /Source/MySql.Data/NuGet.Config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Source/MySql.Data/PerformanceMonitor.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Source/MySql.Data/PerformanceMonitor.cs -------------------------------------------------------------------------------- /Source/MySql.Data/ProcedureCache.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Source/MySql.Data/ProcedureCache.cs -------------------------------------------------------------------------------- /Source/MySql.Data/Properties/VersionInfo.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Source/MySql.Data/Properties/VersionInfo.cs -------------------------------------------------------------------------------- /Source/MySql.Data/Runtime.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | 24 | using System; 25 | 26 | namespace MySql.Web.Security 27 | { 28 | internal static class Runtime 29 | { 30 | private static bool inited; 31 | private static bool isMono; 32 | 33 | public static bool IsMono 34 | { 35 | get 36 | { 37 | if (!inited) 38 | Init(); 39 | return isMono; 40 | } 41 | } 42 | 43 | private static void Init() 44 | { 45 | Type t = Type.GetType("Mono.Runtime"); 46 | isMono = t != null; 47 | } 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /Source/MySql.Data/Statement.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Source/MySql.Data/Statement.cs -------------------------------------------------------------------------------- /Source/MySql.Data/TableCache.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Source/MySql.Data/TableCache.cs -------------------------------------------------------------------------------- /Source/MySql.Data/Types/MySqlConversionException.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2004-2008 MySQL AB, 2008-2009 Sun Microsystems, Inc. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | using MySql.Data.MySqlClient; 25 | 26 | namespace MySql.Data.Types 27 | { 28 | /// 29 | /// Summary description for MySqlConversionException. 30 | /// 31 | [Serializable] 32 | public class MySqlConversionException : Exception 33 | { 34 | /// Ctor 35 | public MySqlConversionException(string msg) 36 | : base(msg) 37 | { 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Source/MySql.Data/Types/MySqlGeometry.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Source/MySql.Data/Types/MySqlGeometry.cs -------------------------------------------------------------------------------- /Source/MySql.Data/Types/MySqlValue.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2004-2008 MySQL AB, 2008-2009 Sun Microsystems, Inc. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | using System.Data; 25 | using System.Globalization; 26 | using MySql.Data.MySqlClient; 27 | 28 | namespace MySql.Data.Types 29 | { 30 | internal interface IMySqlValue 31 | { 32 | bool IsNull { get; } 33 | MySqlDbType MySqlDbType { get; } 34 | object Value { get; /*set;*/ } 35 | Type SystemType { get; } 36 | string MySqlTypeName { get; } 37 | 38 | void WriteValue(MySqlPacket packet, bool binary, object value, int length); 39 | IMySqlValue ReadValue(MySqlPacket packet, long length, bool isNull); 40 | void SkipValue(MySqlPacket packet); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /Source/MySql.Data/base/BaseTransaction.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2004, 2013, Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | using System.Data.Common; 25 | 26 | namespace MySql.Data.MySqlClient 27 | { 28 | #if !RT && !NETSTANDARD1_3 29 | internal class BaseTransaction : DbTransaction 30 | #else 31 | internal class BaseTransaction : IDisposable 32 | #endif 33 | { 34 | 35 | public void Dispose() 36 | { 37 | throw new NotImplementedException(); 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Source/MySql.Data/base/DbConnectionStringBuilder.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Source/MySql.Data/base/DbConnectionStringBuilder.cs -------------------------------------------------------------------------------- /Source/MySql.Data/base/DbException.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Source/MySql.Data/base/DbException.cs -------------------------------------------------------------------------------- /Source/MySql.Data/base/ICloneable.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2004, 2013, Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | using System.Collections.Generic; 25 | using System.Linq; 26 | using System.Text; 27 | 28 | namespace MySql.Data.MySqlClient 29 | { 30 | interface ICloneable 31 | { 32 | object Clone(); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /Source/MySql.Data/base/MySqlNullValueException.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2004, 2013, Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | 25 | namespace MySql.Data.MySqlClient 26 | { 27 | class MySqlNullValueException : Exception 28 | { 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Source/MySql.Data/base/StateChangeEventArgs.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2004, 2013, Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | #if !NETSTANDARD1_3 24 | using System; 25 | using System.Collections.Generic; 26 | using System.Linq; 27 | using System.Text; 28 | using System.Threading.Tasks; 29 | 30 | namespace MySql.Data.MySqlClient 31 | { 32 | public class StateChangeEventArgs : EventArgs 33 | { 34 | public StateChangeEventArgs(ConnectionState originalState, ConnectionState currentState) 35 | { 36 | CurrentState = currentState; 37 | OriginalState = originalState; 38 | } 39 | 40 | public ConnectionState CurrentState { get; private set; } 41 | 42 | public ConnectionState OriginalState { get; private set; } 43 | } 44 | } 45 | #endif -------------------------------------------------------------------------------- /Source/MySql.Data/base/ThreadAbortException.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2004, 2013, Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | using System.Collections.Generic; 25 | using System.Linq; 26 | using System.Text; 27 | using System.Threading.Tasks; 28 | 29 | namespace MySql.Data.MySqlClient 30 | { 31 | public sealed class ThreadAbortException : Exception 32 | { 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /Source/MySql.Data/bin/RT/Release/MySql.Data.RT.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Source/MySql.Data/bin/RT/Release/MySql.Data.RT.dll -------------------------------------------------------------------------------- /Source/MySql.Data/bin/RT/Release/MySql.Data.RT.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Source/MySql.Data/bin/RT/Release/MySql.Data.RT.pdb -------------------------------------------------------------------------------- /Source/MySql.Data/bin/RT/Release/MySql.Data.RT.pri: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Source/MySql.Data/bin/RT/Release/MySql.Data.RT.pri -------------------------------------------------------------------------------- /Source/MySql.Data/cf/WinCE.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2004-2008 MySQL AB, 2008-2009 Sun Microsystems, Inc. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | using System.Runtime.InteropServices; 25 | 26 | namespace MySql.Data.Common 27 | { 28 | /// 29 | /// Summary description for Win32. 30 | /// 31 | internal class WinCE 32 | { 33 | [DllImport("coredll", SetLastError=true)] 34 | internal static extern Int32 WaitForSingleObject(IntPtr handle, Int32 milliseconds); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Source/MySql.Data/common/MySqlTokenizer.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Source/MySql.Data/common/MySqlTokenizer.cs -------------------------------------------------------------------------------- /Source/MySql.Data/common/StringUtility.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | 24 | using System; 25 | using System.Collections.Generic; 26 | using System.Globalization; 27 | using System.Text; 28 | 29 | namespace MySql.Data.MySqlClient 30 | { 31 | public class StringUtility 32 | { 33 | public static string ToUpperInvariant(string s) 34 | { 35 | #if CF 36 | return s.ToUpper(CultureInfo.InvariantCulture); 37 | #else 38 | return s.ToUpperInvariant(); 39 | #endif 40 | } 41 | 42 | public static string ToLowerInvariant(string s) 43 | { 44 | #if CF 45 | return s.ToLower(CultureInfo.InvariantCulture); 46 | #else 47 | return s.ToLowerInvariant(); 48 | #endif 49 | } 50 | 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /Source/MySql.Data/docs/MySqlConnectionStringBuilder.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Gets or sets the name or address of the MySQL instance to connect to. 5 | 6 | 7 | If this property is not set, then the provider will attempt to 8 | connect to localhost even though this property will return 9 | String.Empty. 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | Gets or sets the name of the database that should be selected 18 | when the connection is first opened. 19 | 20 | 21 | There is no default for this property and, if not set, the 22 | connection will not have a current database until one is set 23 | using the method. 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | Gets or sets the connection protocol that is being used for this 32 | connection. 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | Gets or sets the name of the named pipe object that the provider 44 | should use. 45 | 46 | 47 | This property has no effect unless the 48 | property has been set to NamedPipe. 49 | 50 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /Source/MySql.Data/docs/MySqlException.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | This class is created whenever the MySql Data Provider encounters an error generated from the server. 6 | 7 | 8 | Any open connections are not automatically closed when an exception is thrown. If 9 | the client application determines that the exception is fatal, it should close any open 10 | objects or objects. 11 | 12 | 13 | 14 | 15 | The following example generates a MySqlException due to a missing server, 16 | and then displays the exception. 17 | 18 | 19 | Public Sub ShowException() 20 | Dim mySelectQuery As String = "SELECT column1 FROM table1" 21 | Dim myConnection As New MySqlConnection ("Data Source=localhost;Database=Sample;") 22 | Dim myCommand As New MySqlCommand(mySelectQuery, myConnection) 23 | 24 | Try 25 | myCommand.Connection.Open() 26 | Catch e As MySqlException 27 | MessageBox.Show( e.Message ) 28 | End Try 29 | End Sub 30 | 31 | 32 | public void ShowException() 33 | { 34 | string mySelectQuery = "SELECT column1 FROM table1"; 35 | MySqlConnection myConnection = 36 | new MySqlConnection("Data Source=localhost;Database=Sample;"); 37 | MySqlCommand myCommand = new MySqlCommand(mySelectQuery,myConnection); 38 | 39 | try 40 | { 41 | myCommand.Connection.Open(); 42 | } 43 | catch (MySqlException e) 44 | { 45 | MessageBox.Show( e.Message ); 46 | } 47 | } 48 | 49 | 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /Source/MySql.Data/docs/MySqlHelper.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | This class is created whenever the MySql Data Provider encounters an error generated from the server. 6 | 7 | 8 | Any open connections are not automatically closed when an exception is thrown. If 9 | the client application determines that the exception is fatal, it should close any open 10 | objects or objects. 11 | 12 | 13 | 14 | 15 | The following example generates a MySqlException due to a missing server, 16 | and then displays the exception. 17 | 18 | 19 | Public Sub ShowException() 20 | Dim mySelectQuery As String = "SELECT column1 FROM table1" 21 | Dim myConnection As New MySqlConnection ("Data Source=localhost;Database=Sample;") 22 | Dim myCommand As New MySqlCommand(mySelectQuery, myConnection) 23 | 24 | Try 25 | myCommand.Connection.Open() 26 | Catch e As MySqlException 27 | MessageBox.Show( e.Message ) 28 | End Try 29 | End Sub 30 | 31 | 32 | public void ShowException() 33 | { 34 | string mySelectQuery = "SELECT column1 FROM table1"; 35 | MySqlConnection myConnection = 36 | new MySqlConnection("Data Source=localhost;Database=Sample;"); 37 | MySqlCommand myCommand = new MySqlCommand(mySelectQuery,myConnection); 38 | 39 | try 40 | { 41 | myCommand.Connection.Open(); 42 | } 43 | catch (MySqlException e) 44 | { 45 | MessageBox.Show( e.Message ); 46 | } 47 | } 48 | 49 | 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /Source/MySql.Data/docs/MySqlParameter.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Parameter names are not case sensitive. 5 | 6 | 7 | 8 | The following example creates multiple instances of MySqlParameter through the 9 | collection within the . 10 | These parameters are used to select data from the data source and place the data 11 | in the . This example assumes that a DataSet and a 12 | MySqlDataAdapter have already been created with the appropriate schema, commands, 13 | and connection. 14 | 15 | Public Sub AddSqlParameters() 16 | ' ... 17 | ' create myDataSet and myDataAdapter 18 | ' ... 19 | myDataAdapter.SelectCommand.Parameters.Add("@CategoryName", MySqlDbType.VarChar, 80).Value = "toasters" 20 | myDataAdapter.SelectCommand.Parameters.Add("@SerialNum", MySqlDbType.Long).Value = 239 21 | 22 | myDataAdapter.Fill(myDataSet) 23 | End Sub 'AddSqlParameters 24 | 25 | 26 | public void AddSqlParameters() 27 | { 28 | // ... 29 | // create myDataSet and myDataAdapter 30 | // ... 31 | 32 | myDataAdapter.SelectCommand.Parameters.Add("@CategoryName", MySqlDbType.VarChar, 80).Value = "toasters"; 33 | myDataAdapter.SelectCommand.Parameters.Add("@SerialNum", MySqlDbType.Long).Value = 239; 34 | myDataAdapter.Fill(myDataSet); 35 | 36 | } 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /Source/MySql.Data/docs/MySqlParameterCollection.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | The number of the parameters in the collection must be equal to the number of 5 | parameter placeholders within the command text, or an exception will be generated. 6 | 7 | 8 | 9 | The following example creates multiple instances of 10 | through the MySqlParameterCollection collection within the . 11 | These parameters are used to select data within the data source and place the data in 12 | the . This code assumes that a DataSet and a MySqlDataAdapter 13 | have already been created with the appropriate schema, commands, and connection. 14 | 15 | Public Sub AddParameters() 16 | ' ... 17 | ' create myDataSet and myDataAdapter 18 | ' ... 19 | myDataAdapter.SelectCommand.Parameters.Add("@CategoryName", MySqlDbType.VarChar, 80).Value = "toasters" 20 | myDataAdapter.SelectCommand.Parameters.Add("@SerialNum", MySqlDbType.Long).Value = 239 21 | 22 | myDataAdapter.Fill(myDataSet) 23 | End Sub 'AddSqlParameters 24 | 25 | 26 | public void AddSqlParameters() 27 | { 28 | // ... 29 | // create myDataSet and myDataAdapter 30 | // ... 31 | 32 | myDataAdapter.SelectCommand.Parameters.Add("@CategoryName", MySqlDbType.VarChar, 80).Value = "toasters"; 33 | myDataAdapter.SelectCommand.Parameters.Add("@SerialNum", MySqlDbType.Long).Value = 239; 34 | myDataAdapter.Fill(myDataSet); 35 | 36 | } 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /Source/MySql.Data/extensions/NonRT/MySqlConnectionStringBuilder.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2004, 2013, Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | using System.Data.Common; 25 | 26 | namespace MySql.Data.MySqlClient 27 | { 28 | #if NETSTANDARD1_3 29 | public sealed partial class MySqlConnectionStringBuilder : System.Data.Common.DbConnectionStringBuilder 30 | #else 31 | public sealed partial class MySqlConnectionStringBuilder : DbConnectionStringBuilder 32 | #endif 33 | { 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /Source/MySql.Data/extensions/NonRT/MySqlTransaction.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2004, 2013, Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | using System.Collections.Generic; 25 | using System.Data.Common; 26 | using System.Text; 27 | 28 | namespace MySql.Data.MySqlClient 29 | { 30 | public sealed partial class MySqlTransaction : DbTransaction 31 | { 32 | protected override DbConnection DbConnection 33 | { 34 | get { return conn; } 35 | } 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /Source/MySql.Data/extensions/RT/ArrayList.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2004, 2013, Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | using System.Collections.Generic; 25 | using System.Linq; 26 | using System.Text; 27 | using System.Threading.Tasks; 28 | 29 | namespace System.Collections 30 | { 31 | public class ArrayList : List 32 | { 33 | public Array ToArray(Type type) 34 | { 35 | Array tempArray = Array.CreateInstance(type); 36 | Array.Copy(this.ToArray(), tempArray, this.Count); 37 | 38 | return tempArray; 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /Source/MySql.Data/extensions/RT/DbNull.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2004, 2013, Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | using System.Collections.Generic; 25 | using System.Linq; 26 | using System.Text; 27 | using System.Threading.Tasks; 28 | 29 | namespace System 30 | { 31 | public sealed class DBNull 32 | { 33 | public static readonly DBNull Value; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /Source/MySql.Data/extensions/RT/Encoding.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2004, 2013, Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | using System.Collections.Generic; 25 | using System.Linq; 26 | using System.Threading.Tasks; 27 | 28 | namespace MySql.Data.MySqlClient.RT 29 | { 30 | public class Encoding 31 | { 32 | private static Encoding instance = new Encoding(); 33 | private System.Text.Encoding defaultEncoding = new System.Text.UTF8Encoding(); 34 | 35 | public static Encoding Instance 36 | { 37 | get { return instance; } 38 | } 39 | 40 | public static System.Text.Encoding Default 41 | { 42 | get { return instance.defaultEncoding; } 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /Source/MySql.Data/extensions/RT/MySqlConnectionStringBuilder.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2004, 2013, Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | 25 | namespace MySql.Data.MySqlClient 26 | { 27 | public sealed partial class MySqlConnectionStringBuilder : DbConnectionStringBuilder 28 | { 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /Source/MySql.Data/extensions/RT/MySqlTransaction.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2004, 2013, Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | 25 | namespace MySql.Data.MySqlClient 26 | { 27 | public sealed partial class MySqlTransaction : RTTransaction 28 | { 29 | } 30 | 31 | public abstract class RTTransaction 32 | { 33 | public abstract void Commit(); 34 | public abstract void Rollback(); 35 | public abstract IsolationLevel IsolationLevel { get; } 36 | } 37 | 38 | public enum IsolationLevel 39 | { 40 | Unspecified, 41 | Chaos, 42 | ReadUncommitted, 43 | ReadCommitted, 44 | RepeatableRead, 45 | Serializable, 46 | Snapshot 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /Source/MySql.Data/extensions/RT/Thread.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2004, 2013, Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | using System.Collections.Generic; 25 | using System.Linq; 26 | using System.Text; 27 | using System.Threading.Tasks; 28 | 29 | namespace System.Threading 30 | { 31 | internal class Thread 32 | { 33 | public static void Sleep(int milliseconds) 34 | { 35 | var delay = Task.Delay(milliseconds); 36 | delay.Wait(); 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /Source/MySql.Web/Install.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Source/MySql.Web/Install.cs -------------------------------------------------------------------------------- /Source/MySql.Web/MembershipProvider.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Source/MySql.Web/MembershipProvider.cs -------------------------------------------------------------------------------- /Source/MySql.Web/ProfileProvider.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Source/MySql.Web/ProfileProvider.cs -------------------------------------------------------------------------------- /Source/MySql.Web/Properties/schema1.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE mysql_Membership(`PKID` varchar(36) NOT NULL, 2 | Username varchar(255) NOT NULL, 3 | ApplicationName varchar(255) NOT NULL, 4 | Email varchar(128) NOT NULL, 5 | Comment varchar(255) default NULL, 6 | Password varchar(128) NOT NULL, 7 | PasswordQuestion varchar(255) default NULL, 8 | PasswordAnswer varchar(255) default NULL, 9 | IsApproved tinyint(1) default NULL, 10 | LastActivityDate datetime default NULL, 11 | LastLoginDate datetime default NULL, 12 | LastPasswordChangedDate datetime default NULL, 13 | CreationDate datetime default NULL, 14 | IsOnline tinyint(1) default NULL, 15 | IsLockedOut tinyint(1) default NULL, 16 | LastLockedOutDate datetime default NULL, 17 | FailedPasswordAttemptCount int(10) unsigned default NULL, 18 | FailedPasswordAttemptWindowStart datetime default NULL, 19 | FailedPasswordAnswerAttemptCount int(10) unsigned default NULL, 20 | FailedPasswordAnswerAttemptWindowStart datetime default NULL, 21 | PRIMARY KEY (`PKID`)) DEFAULT CHARSET=latin1 COMMENT='1'; 22 | 23 | CREATE TABLE mysql_UsersInRoles(`Username` varchar(255) NOT NULL, 24 | `Rolename` varchar(255) NOT NULL, `ApplicationName` varchar(255) NOT NULL, 25 | KEY `Username` (`Username`,`Rolename`,`ApplicationName`) 26 | ) DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC; 27 | 28 | CREATE TABLE mysql_Roles(`Rolename` varchar(255) NOT NULL, 29 | `ApplicationName` varchar(255) NOT NULL, 30 | KEY `Rolename` (`Rolename`,`ApplicationName`) 31 | ) DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC; 32 | 33 | -------------------------------------------------------------------------------- /Source/MySql.Web/Properties/schema10.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE my_aspnet_personalizationperuser( 2 | id INT PRIMARY KEY AUTO_INCREMENT, 3 | applicationId INT NOT NULL, 4 | pathId VARCHAR(36) DEFAULT NULL, 5 | userId INT, 6 | pageSettings BLOB NOT NULL, 7 | lastUpdatedDate DATETIME NOT NULL)DEFAULT CHARSET=latin1 ; 8 | 9 | 10 | CREATE TABLE my_aspnet_personalizationallusers( 11 | pathId VARCHAR(36) PRIMARY KEY, 12 | pageSettings BLOB NOT NULL, 13 | lastUpdatedDate DATETIME NOT NULL)DEFAULT CHARSET=latin1 ; 14 | 15 | CREATE TABLE my_aspnet_paths 16 | ( 17 | applicationId INT NOT NULL, 18 | pathId VARCHAR(36) PRIMARY KEY, 19 | path VARCHAR(256) NOT NULL, 20 | loweredPath VARCHAR(256) NOT NULL 21 | )DEFAULT CHARSET=latin1 ; 22 | 23 | UPDATE my_aspnet_schemaversion SET version=10; -------------------------------------------------------------------------------- /Source/MySql.Web/Properties/schema11.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE IF NOT EXISTS webpages_membership ( 2 | UserId int NOT NULL primary key, 3 | CreateDate datetime NULL, 4 | ConfirmationToken nvarchar(128) NULL, 5 | IsConfirmed bit NULL DEFAULT 0, 6 | LastPasswordFailureDate datetime NULL, 7 | PasswordFailuresSinceLastSuccess int NOT NULL DEFAULT 0, 8 | Password nvarchar(128) NOT NULL, 9 | PasswordChangedDate datetime NULL, 10 | PasswordSalt nvarchar(128) NOT NULL, 11 | PasswordVerificationToken nvarchar(128) NULL, 12 | PasswordVerificationTokenExpirationDate datetime NULL 13 | ); 14 | 15 | CREATE TABLE IF NOT EXISTS webpages_OAuthMembership( 16 | Provider nvarchar(30) NOT NULL, 17 | ProviderUserId nvarchar(100) NOT NULL, 18 | UserId int NOT NULL, primary key (Provider, ProviderUserId)); 19 | 20 | CREATE TABLE IF NOT EXISTS webpages_OAuthtoken ( 21 | Token nvarchar(100) not null primary key, 22 | Secret nvarchar(100) not null); 23 | 24 | CREATE TABLE IF NOT EXISTS webpages_Roles( 25 | RoleId int auto_increment NOT NULL primary key, 26 | RoleName varchar(256) NOT NULL); 27 | 28 | CREATE TABLE IF NOT EXISTS webpages_UsersInRoles( 29 | UserId int NOT NULL, 30 | RoleId int NOT NULL, 31 | primary key(UserId, RoleId), 32 | CONSTRAINT fk_RoleId FOREIGN KEY(RoleId) REFERENCES webpages_Roles (RoleId)); -------------------------------------------------------------------------------- /Source/MySql.Web/Properties/schema2.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE mysql_Membership 2 | ADD PasswordKey char(32) AFTER Password, 3 | ADD PasswordFormat tinyint AFTER PasswordKey, 4 | CHANGE Email Email VARCHAR(128), COMMENT='2'; 5 | 6 | 7 | -------------------------------------------------------------------------------- /Source/MySql.Web/Properties/schema4.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE my_aspnet_membership CONVERT TO CHARACTER SET DEFAULT; 2 | ALTER TABLE my_aspnet_roles CONVERT TO CHARACTER SET DEFAULT; 3 | ALTER TABLE my_aspnet_usersinroles CONVERT TO CHARACTER SET DEFAULT; 4 | 5 | UPDATE my_aspnet_schemaversion SET version=4 WHERE version=3; 6 | -------------------------------------------------------------------------------- /Source/MySql.Web/Properties/schema5.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE my_aspnet_sessions 2 | ( 3 | SessionId varchar(191) NOT NULL, 4 | ApplicationId int NOT NULL, 5 | Created datetime NOT NULL, 6 | Expires datetime NOT NULL, 7 | LockDate datetime NOT NULL, 8 | LockId int NOT NULL, 9 | Timeout int NOT NULL, 10 | Locked tinyint(1) NOT NULL, 11 | SessionItems BLOB, 12 | Flags int NOT NULL, 13 | primary key (SessionId,ApplicationId) 14 | ) DEFAULT CHARSET=latin1; 15 | 16 | /* 17 | Cleaning up timed out sessions. 18 | In 5.1 events provide a support for periodic jobs. 19 | In older version we need a do-it-yourself event. 20 | */ 21 | CREATE TABLE my_aspnet_sessioncleanup 22 | ( 23 | LastRun datetime NOT NULL, 24 | IntervalMinutes int NOT NULL 25 | ); 26 | 27 | INSERT INTO my_aspnet_sessioncleanup(LastRun,IntervalMinutes) values(NOW(), 10); 28 | 29 | UPDATE my_aspnet_schemaversion SET version=5; 30 | 31 | -------------------------------------------------------------------------------- /Source/MySql.Web/Properties/schema6.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE my_aspnet_sessions CONVERT TO CHARACTER SET DEFAULT; 2 | ALTER TABLE my_aspnet_sessions MODIFY SessionItems LONGBLOB; 3 | 4 | UPDATE my_aspnet_schemaversion SET version=6; 5 | -------------------------------------------------------------------------------- /Source/MySql.Web/Properties/schema7.sql: -------------------------------------------------------------------------------- 1 | RENAME TABLE my_aspnet_Applications TO my_aspnet_applications; 2 | RENAME TABLE my_aspnet_Membership TO my_aspnet_membership; 3 | RENAME TABLE my_aspnet_Profiles TO my_aspnet_profiles; 4 | RENAME TABLE my_aspnet_Roles TO my_aspnet_roles; 5 | RENAME TABLE my_aspnet_SchemaVersion TO my_aspnet_schemaversion; 6 | RENAME TABLE my_aspnet_SessionCleanup TO my_aspnet_sessioncleanup; 7 | RENAME TABLE my_aspnet_Sessions TO my_aspnet_sessions; 8 | RENAME TABLE my_aspnet_Users TO my_aspnet_users; 9 | RENAME TABLE my_aspnet_UsersInRoles TO my_aspnet_usersinroles; 10 | 11 | UPDATE my_aspnet_schemaversion SET version=7; -------------------------------------------------------------------------------- /Source/MySql.Web/Properties/schema8.sql: -------------------------------------------------------------------------------- 1 | DELETE FROM my_aspnet_sessioncleanup; 2 | 3 | ALTER TABLE my_aspnet_sessioncleanup ADD ApplicationId INT NOT NULL; 4 | ALTER TABLE my_aspnet_sessioncleanup ADD Primary Key (ApplicationId); 5 | 6 | UPDATE my_aspnet_schemaversion SET version=8; -------------------------------------------------------------------------------- /Source/MySql.Web/Properties/schema9.sql: -------------------------------------------------------------------------------- 1 | 2 | create table my_aspnet_sitemap( 3 | Id int auto_increment primary key, 4 | Title varchar( 50 ), 5 | Description varchar( 512 ), 6 | Url varchar( 512 ), 7 | Roles varchar( 1000 ), 8 | ParentId int default null 9 | ) engine=Innodb; 10 | 11 | UPDATE my_aspnet_schemaversion SET version=9; -------------------------------------------------------------------------------- /Source/MySql.Web/SchemaManager.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Source/MySql.Web/SchemaManager.cs -------------------------------------------------------------------------------- /Source/MySql.Web/SessionProvider.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Source/MySql.Web/SessionProvider.cs -------------------------------------------------------------------------------- /Source/Plugins/MySql.Fabric/Enums.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2014, 2015 Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | 25 | namespace MySql.Fabric 26 | { 27 | [Flags] 28 | public enum FabricServerModeEnum 29 | { 30 | Offline = 0, 31 | Read_only = 1, 32 | Write_only = 2, 33 | Read_Write = 4 34 | } 35 | 36 | internal enum FabricServerStatusEnum 37 | { 38 | Faulty = 0, 39 | Spare = 1, 40 | Secondary = 2, 41 | Primary = 3 42 | } 43 | 44 | public enum FabricScopeEnum 45 | { 46 | Global = 1, 47 | Local = 2 48 | } 49 | 50 | internal enum FabricShardIndexType : int 51 | { 52 | Hash = 1, 53 | Range = 2, 54 | List = 3 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /Source/Plugins/MySql.Fabric/FabricGroup.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | using System.Collections.Generic; 25 | using System.Linq; 26 | using System.Text; 27 | 28 | 29 | namespace MySql.Fabric 30 | { 31 | internal class FabricGroup 32 | { 33 | internal string GroupId { get; set; } 34 | internal string Description { get; set; } 35 | internal int? FailureDetector { get; set; } 36 | internal string MasterUuid { get; set; } 37 | internal List Servers { get; set; } 38 | 39 | internal FabricGroup() 40 | { 41 | Servers = new List(); 42 | } 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /Source/Plugins/MySql.Fabric/FabricShardIndex.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | using System.Collections.Generic; 25 | using System.Linq; 26 | using System.Text; 27 | 28 | 29 | namespace MySql.Fabric 30 | { 31 | internal class FabricShardIndex 32 | { 33 | internal FabricShardIndexType Type { get; set; } 34 | internal object LowerBound { get; set; } 35 | internal int MappingId { get; set; } 36 | internal int ShardId { get; set; } 37 | internal string GroupId { get; set; } 38 | internal FabricGroup Group { get; set; } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Source/Plugins/MySql.Fabric/FabricShardTable.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | using System.Collections.Generic; 25 | using System.Linq; 26 | using System.Text; 27 | 28 | 29 | namespace MySql.Fabric 30 | { 31 | internal class FabricShardTable 32 | { 33 | internal List Indexes { get; set; } 34 | internal string SchemaName { get; set; } 35 | internal string TableName { get; set; } 36 | internal string ColumnName { get; set; } 37 | internal int MappingId { get; set; } 38 | internal string GlobalGroupId { get; set; } 39 | internal FabricShardIndexType TypeShard { get; set; } 40 | 41 | internal FabricShardTable() 42 | { 43 | Indexes = new List(); 44 | } 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /Source/Plugins/MySql.Fabric/MySqlFabricException.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2014, 2015 Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | 25 | namespace MySql.Fabric 26 | { 27 | public class MySqlFabricException : Exception 28 | { 29 | public MySqlFabricException(string message) 30 | : base(message) 31 | { 32 | } 33 | 34 | public MySqlFabricException(string message, Exception innerException) 35 | : base(message, innerException) 36 | { 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /Tests/MySql.Data.Entity.CodeFirst.Tests/ExpressionTests.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Tests/MySql.Data.Entity.CodeFirst.Tests/ExpressionTests.cs -------------------------------------------------------------------------------- /Tests/MySql.Data.Entity.CodeFirst.Tests/SakilaModel/SakilaDb.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Tests/MySql.Data.Entity.CodeFirst.Tests/SakilaModel/SakilaDb.cs -------------------------------------------------------------------------------- /Tests/MySql.Data.Entity.CodeFirst.Tests/SakilaModel/actor.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Tests/MySql.Data.Entity.CodeFirst.Tests/SakilaModel/actor.cs -------------------------------------------------------------------------------- /Tests/MySql.Data.Entity.CodeFirst.Tests/SakilaModel/actor_info.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Tests/MySql.Data.Entity.CodeFirst.Tests/SakilaModel/actor_info.cs -------------------------------------------------------------------------------- /Tests/MySql.Data.Entity.CodeFirst.Tests/SakilaModel/address.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Tests/MySql.Data.Entity.CodeFirst.Tests/SakilaModel/address.cs -------------------------------------------------------------------------------- /Tests/MySql.Data.Entity.CodeFirst.Tests/SakilaModel/category.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Tests/MySql.Data.Entity.CodeFirst.Tests/SakilaModel/category.cs -------------------------------------------------------------------------------- /Tests/MySql.Data.Entity.CodeFirst.Tests/SakilaModel/city.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Tests/MySql.Data.Entity.CodeFirst.Tests/SakilaModel/city.cs -------------------------------------------------------------------------------- /Tests/MySql.Data.Entity.CodeFirst.Tests/SakilaModel/country.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Tests/MySql.Data.Entity.CodeFirst.Tests/SakilaModel/country.cs -------------------------------------------------------------------------------- /Tests/MySql.Data.Entity.CodeFirst.Tests/SakilaModel/customer.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Tests/MySql.Data.Entity.CodeFirst.Tests/SakilaModel/customer.cs -------------------------------------------------------------------------------- /Tests/MySql.Data.Entity.CodeFirst.Tests/SakilaModel/customer_list.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Tests/MySql.Data.Entity.CodeFirst.Tests/SakilaModel/customer_list.cs -------------------------------------------------------------------------------- /Tests/MySql.Data.Entity.CodeFirst.Tests/SakilaModel/film.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Tests/MySql.Data.Entity.CodeFirst.Tests/SakilaModel/film.cs -------------------------------------------------------------------------------- /Tests/MySql.Data.Entity.CodeFirst.Tests/SakilaModel/film_actor.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Tests/MySql.Data.Entity.CodeFirst.Tests/SakilaModel/film_actor.cs -------------------------------------------------------------------------------- /Tests/MySql.Data.Entity.CodeFirst.Tests/SakilaModel/film_category.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Tests/MySql.Data.Entity.CodeFirst.Tests/SakilaModel/film_category.cs -------------------------------------------------------------------------------- /Tests/MySql.Data.Entity.CodeFirst.Tests/SakilaModel/film_list.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Tests/MySql.Data.Entity.CodeFirst.Tests/SakilaModel/film_list.cs -------------------------------------------------------------------------------- /Tests/MySql.Data.Entity.CodeFirst.Tests/SakilaModel/film_text.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Tests/MySql.Data.Entity.CodeFirst.Tests/SakilaModel/film_text.cs -------------------------------------------------------------------------------- /Tests/MySql.Data.Entity.CodeFirst.Tests/SakilaModel/inventory.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Tests/MySql.Data.Entity.CodeFirst.Tests/SakilaModel/inventory.cs -------------------------------------------------------------------------------- /Tests/MySql.Data.Entity.CodeFirst.Tests/SakilaModel/language.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Tests/MySql.Data.Entity.CodeFirst.Tests/SakilaModel/language.cs -------------------------------------------------------------------------------- /Tests/MySql.Data.Entity.CodeFirst.Tests/SakilaModel/nicer_but_slower_film_list.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Tests/MySql.Data.Entity.CodeFirst.Tests/SakilaModel/nicer_but_slower_film_list.cs -------------------------------------------------------------------------------- /Tests/MySql.Data.Entity.CodeFirst.Tests/SakilaModel/payment.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Tests/MySql.Data.Entity.CodeFirst.Tests/SakilaModel/payment.cs -------------------------------------------------------------------------------- /Tests/MySql.Data.Entity.CodeFirst.Tests/SakilaModel/rental.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Tests/MySql.Data.Entity.CodeFirst.Tests/SakilaModel/rental.cs -------------------------------------------------------------------------------- /Tests/MySql.Data.Entity.CodeFirst.Tests/SakilaModel/sales_by_film_category.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Tests/MySql.Data.Entity.CodeFirst.Tests/SakilaModel/sales_by_film_category.cs -------------------------------------------------------------------------------- /Tests/MySql.Data.Entity.CodeFirst.Tests/SakilaModel/sales_by_store.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Tests/MySql.Data.Entity.CodeFirst.Tests/SakilaModel/sales_by_store.cs -------------------------------------------------------------------------------- /Tests/MySql.Data.Entity.CodeFirst.Tests/SakilaModel/staff.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Tests/MySql.Data.Entity.CodeFirst.Tests/SakilaModel/staff.cs -------------------------------------------------------------------------------- /Tests/MySql.Data.Entity.CodeFirst.Tests/SakilaModel/staff_list.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Tests/MySql.Data.Entity.CodeFirst.Tests/SakilaModel/staff_list.cs -------------------------------------------------------------------------------- /Tests/MySql.Data.Entity.CodeFirst.Tests/SakilaModel/store.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Tests/MySql.Data.Entity.CodeFirst.Tests/SakilaModel/store.cs -------------------------------------------------------------------------------- /Tests/MySql.Data.Entity.Migrations.Tests/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 |
5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Tests/MySql.Data.Entity.Migrations.Tests/BlogsModel.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2013 Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | using System.Collections.Generic; 25 | using System.Linq; 26 | using System.Text; 27 | using System.Data.Entity; 28 | using System.ComponentModel.DataAnnotations; 29 | 30 | namespace MySql.Data.Entity.Migrations.Tests 31 | { 32 | public class BlogContext : DbContext 33 | { 34 | public BlogContext() : base("BlogsContext") { } 35 | 36 | public DbSet Blog { get; set; } 37 | 38 | } 39 | 40 | public class Blog 41 | { 42 | [Key] 43 | public int BlogId { get; set; } 44 | public string Title { get; set; } 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /Tests/MySql.Data.Entity.Migrations.Tests/EF6/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 |
5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /Tests/MySql.Data.Entity.Migrations.Tests/MyConfiguration.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2013 Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | using System.Collections.Generic; 25 | using System.Linq; 26 | using System.Text; 27 | using System.Threading.Tasks; 28 | using MySql.Data.Entity; 29 | 30 | namespace MySql.Data.Entity.Migrations.Tests 31 | { 32 | public class MyConfiguration : MySqlEFConfiguration 33 | { 34 | public MyConfiguration() 35 | : base() 36 | { 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /Tests/MySql.Data.Entity.Tests/EdmxArtifactsRenamingv3.5.targets: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | 19 | 20 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /Tests/MySql.Data.Entity.Tests/EdmxArtifactsRenamingv4.x.targets: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 9 | 10 | 11 | 12 | 13 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 25 | 26 | 27 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /Tests/MySql.Data.Entity.Tests/InsertTests.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Tests/MySql.Data.Entity.Tests/InsertTests.cs -------------------------------------------------------------------------------- /Tests/MySql.Data.Entity.Tests/JoinTests.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Tests/MySql.Data.Entity.Tests/JoinTests.cs -------------------------------------------------------------------------------- /Tests/MySql.Data.Entity.Tests/MyConfiguration.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013 Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | using System.Collections.Generic; 25 | using System.Linq; 26 | using System.Text; 27 | using System.Threading.Tasks; 28 | using MySql.Data.Entity; 29 | 30 | namespace MySql.Data.Entity.Tests 31 | { 32 | public class MyConfiguration : MySqlEFConfiguration 33 | { 34 | public MyConfiguration() 35 | : base() 36 | { 37 | //AddMigrationSqlGenerator(() => { return new MySqlMigrationSqlGenerator(); }); 38 | //AddMigrationSqlGenerator(() => { return new MySqlMigrationSqlGenerator(); }); 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /Tests/MySql.Data.Entity.Tests/MyCustomTasks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Tests/MySql.Data.Entity.Tests/MyCustomTasks.dll -------------------------------------------------------------------------------- /Tests/MySql.Data.Entity.Tests/MyCustomTasks.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Tests/MySql.Data.Entity.Tests/MyCustomTasks.pdb -------------------------------------------------------------------------------- /Tests/MySql.Data.Entity.Tests/OrderingAndGrouping.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Tests/MySql.Data.Entity.Tests/OrderingAndGrouping.cs -------------------------------------------------------------------------------- /Tests/MySql.Data.Entity.Tests/Paging.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Tests/MySql.Data.Entity.Tests/Paging.cs -------------------------------------------------------------------------------- /Tests/MySql.Data.Entity.Tests/ProceduresAndFunctions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Tests/MySql.Data.Entity.Tests/ProceduresAndFunctions.cs -------------------------------------------------------------------------------- /Tests/MySql.Data.Entity.Tests/Properties/procs.sql: -------------------------------------------------------------------------------- 1 | 2 | DROP PROCEDURE IF EXISTS AddAuthor$$ 3 | DROP PROCEDURE IF EXISTS DeleteAuthor$$ 4 | DROP PROCEDURE IF EXISTS UpdateAuthor$$ 5 | 6 | CREATE PROCEDURE AddAuthor(theid INT, thename VARCHAR(20), theage INT) 7 | BEGIN 8 | IF theid = 66 THEN 9 | SELECT SLEEP(30); 10 | ELSE 11 | INSERT INTO authors VALUES (theid, thename, theage); 12 | END IF; 13 | END $$ 14 | 15 | CREATE PROCEDURE DeleteAuthor(theid int) 16 | BEGIN 17 | DELETE FROM authors WHERE id=theid; 18 | END $$ 19 | 20 | CREATE PROCEDURE UpdateAuthor(theid int, thename varchar(20), theage int) 21 | BEGIN 22 | UPDATE authors SET `name`=thename, age=theage WHERE id=theid; 23 | END $$ 24 | 25 | CREATE FUNCTION spFunc(id INT, name VARCHAR(20)) RETURNS INT 26 | BEGIN 27 | RETURN id; 28 | END $$ 29 | 30 | -------------------------------------------------------------------------------- /Tests/MySql.Data.Entity.Tests/RelationalOperators.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Tests/MySql.Data.Entity.Tests/RelationalOperators.cs -------------------------------------------------------------------------------- /Tests/MySql.Data.Entity.Tests/RestrictionOperators.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Tests/MySql.Data.Entity.Tests/RestrictionOperators.cs -------------------------------------------------------------------------------- /Tests/MySql.Data.Entity.Tests/SchemaInformation.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Tests/MySql.Data.Entity.Tests/SchemaInformation.cs -------------------------------------------------------------------------------- /Tests/MySql.Data.Entity.Tests/SetOperators.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Tests/MySql.Data.Entity.Tests/SetOperators.cs -------------------------------------------------------------------------------- /Tests/MySql.Data.Entity.Tests/UpdateTests.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Tests/MySql.Data.Entity.Tests/UpdateTests.cs -------------------------------------------------------------------------------- /Tests/MySql.Data.Entity.Tests/Wizard.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Tests/MySql.Data.Entity.Tests/Wizard.cs -------------------------------------------------------------------------------- /Tests/MySql.Data.Tests.Stress/StressTestsPipe.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2013, 2015 Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | using System.Collections.Generic; 25 | using System.Text; 26 | using MySql.Data.MySqlClient; 27 | using MySql.Data.MySqlClient.Properties; 28 | using Xunit; 29 | using System.Data; 30 | using System.ComponentModel; 31 | using System.Security.Authentication; 32 | 33 | namespace MySql.Data.Tests.Stress 34 | { 35 | public class StressTestsPipe : StressTests 36 | { 37 | protected override string OnGetConnectionStringInfo() 38 | { 39 | return string.Format("protocol=pipe;pipe name={0};ssl mode=none;", st.pipeName); 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /Tests/MySql.Data.Tests.Stress/StressTestsPipeCompressed.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2013, 2015 Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | using System.Collections.Generic; 25 | using System.Text; 26 | using MySql.Data.MySqlClient; 27 | using MySql.Data.MySqlClient.Properties; 28 | using Xunit; 29 | using System.Data; 30 | using System.ComponentModel; 31 | using System.Security.Authentication; 32 | 33 | namespace MySql.Data.Tests.Stress 34 | { 35 | public class StressTestsPipeCompressed : StressTests 36 | { 37 | protected override string OnGetConnectionStringInfo() 38 | { 39 | return string.Format("protocol=pipe;pipe name={0};compress=true;ssl mode=none;", st.pipeName); 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /Tests/MySql.Data.Tests.Stress/StressTestsSharedMemory.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2013, 2015 Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | using System.Collections.Generic; 25 | using System.Text; 26 | using MySql.Data.MySqlClient; 27 | using MySql.Data.MySqlClient.Properties; 28 | using Xunit; 29 | using System.Data; 30 | using System.ComponentModel; 31 | using System.Security.Authentication; 32 | 33 | namespace MySql.Data.Tests.Stress 34 | { 35 | public class StressTestsSharedMemory : StressTests 36 | { 37 | protected override string OnGetConnectionStringInfo() 38 | { 39 | return string.Format("protocol=memory; shared memory name={0};ssl mode=none;", st.memoryName); 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /Tests/MySql.Data.Tests.Stress/StressTestsSharedMemoryCompressed.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2013, 2015 Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | using System.Collections.Generic; 25 | using System.Text; 26 | using MySql.Data.MySqlClient; 27 | using MySql.Data.MySqlClient.Properties; 28 | using Xunit; 29 | using System.Data; 30 | using System.ComponentModel; 31 | using System.Security.Authentication; 32 | 33 | namespace MySql.Data.Tests.Stress 34 | { 35 | public class StressTestsSharedMemoryCompressed : StressTests 36 | { 37 | protected override string OnGetConnectionStringInfo() 38 | { 39 | return string.Format("protocol=memory; shared memory name={0};compress=true;ssl mode=none;", st.memoryName); 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /Tests/MySql.Data.Tests.Stress/StressTestsSocketCompressed.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2013, 2014 Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | using System.Collections.Generic; 25 | using System.Text; 26 | using MySql.Data.MySqlClient; 27 | using MySql.Data.MySqlClient.Properties; 28 | using Xunit; 29 | using System.Data; 30 | using System.ComponentModel; 31 | using System.Security.Authentication; 32 | 33 | namespace MySql.Data.Tests.Stress 34 | { 35 | public class StressTestsSocketCompressed : StressTests 36 | { 37 | protected override string OnGetConnectionStringInfo() 38 | { 39 | return "compress=true"; 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /Tests/MySql.Data.Tests/BlobTestsPipe.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2013, 2015 Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | using System.Collections.Generic; 25 | using System.Text; 26 | using MySql.Data.MySqlClient; 27 | using MySql.Data.MySqlClient.Properties; 28 | using Xunit; 29 | using System.Data; 30 | using System.ComponentModel; 31 | using System.Security.Authentication; 32 | 33 | namespace MySql.Data.MySqlClient.Tests 34 | { 35 | #region Configs 36 | #if !CF 37 | [Category("Compressed")] 38 | public class BlobTestsPipe : BlobTests 39 | { 40 | protected override string OnGetConnectionStringInfo() 41 | { 42 | return String.Format("protocol=pipe;pipe name={0};ssl mode=none;", st.pipeName); 43 | } 44 | } 45 | #endif 46 | #endregion 47 | } 48 | -------------------------------------------------------------------------------- /Tests/MySql.Data.Tests/BlobTestsSharedMemory.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2013, 2015 Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | using System.Collections.Generic; 25 | using System.Text; 26 | using MySql.Data.MySqlClient; 27 | using MySql.Data.MySqlClient.Properties; 28 | using Xunit; 29 | using System.Data; 30 | using System.ComponentModel; 31 | using System.Security.Authentication; 32 | 33 | namespace MySql.Data.MySqlClient.Tests 34 | { 35 | #region Configs 36 | #if !CF 37 | [Category("Compressed")] 38 | public class BlobTestsSharedMemory : BlobTests 39 | { 40 | protected override string OnGetConnectionStringInfo() 41 | { 42 | return String.Format("protocol=memory; shared memory name={0};ssl mode=none;", st.memoryName); 43 | } 44 | } 45 | #endif 46 | #endregion 47 | } -------------------------------------------------------------------------------- /Tests/MySql.Data.Tests/BlobTestsSocketCompressed.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2013 Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | using System.Collections.Generic; 25 | using System.Text; 26 | using MySql.Data.MySqlClient; 27 | using MySql.Data.MySqlClient.Properties; 28 | using Xunit; 29 | using System.Data; 30 | using System.ComponentModel; 31 | using System.Security.Authentication; 32 | 33 | namespace MySql.Data.MySqlClient.Tests 34 | { 35 | #region Configs 36 | #if !CF 37 | [Category("Compressed")] 38 | public class BlobTestsSocketCompressed : BlobTests 39 | { 40 | protected override string OnGetConnectionStringInfo() 41 | { 42 | return String.Format("port={0};compress=true", st.port); 43 | } 44 | } 45 | #endif 46 | #endregion 47 | } 48 | -------------------------------------------------------------------------------- /Tests/MySql.Data.Tests/CommandTests.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Tests/MySql.Data.Tests/CommandTests.cs -------------------------------------------------------------------------------- /Tests/MySql.Data.Tests/ConnectionTests.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Tests/MySql.Data.Tests/ConnectionTests.cs -------------------------------------------------------------------------------- /Tests/MySql.Data.Tests/DataReaderTests.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Tests/MySql.Data.Tests/DataReaderTests.cs -------------------------------------------------------------------------------- /Tests/MySql.Data.Tests/MediumTrust/MediumTrustFixtureAttribute.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2013 Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | using System.Collections.Generic; 25 | using System.Text; 26 | using Xunit; 27 | 28 | namespace MySql.Data.MySqlClient.Tests.Xunit 29 | { 30 | class MediumTrustFixtureAttribute : RunWithAttribute 31 | { 32 | public MediumTrustFixtureAttribute() 33 | : base(typeof(MediumTrustTestClassCommand)) 34 | { } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Tests/MySql.Data.Tests/MySqlCommandTestsPipe.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2013, 2015 Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | using System.Collections.Generic; 25 | using System.Text; 26 | using MySql.Data.MySqlClient; 27 | using MySql.Data.MySqlClient.Properties; 28 | using Xunit; 29 | using System.Data; 30 | using System.ComponentModel; 31 | using System.Security.Authentication; 32 | 33 | namespace MySql.Data.MySqlClient.Tests 34 | { 35 | #region Configs 36 | #if !CF 37 | public class MySqlCommandTestsPipe : MySqlCommandTests 38 | { 39 | protected override string OnGetConnectionStringInfo() 40 | { 41 | return String.Format("protocol=namedpipe;pipe name={0};ssl mode=none;", st.pipeName); 42 | } 43 | } 44 | #endif 45 | #endregion 46 | } -------------------------------------------------------------------------------- /Tests/MySql.Data.Tests/MySqlCommandTestsPipeCompressed.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2013, 2015 Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | using System.Collections.Generic; 25 | using System.Text; 26 | using MySql.Data.MySqlClient; 27 | using MySql.Data.MySqlClient.Properties; 28 | using Xunit; 29 | using System.Data; 30 | using System.ComponentModel; 31 | using System.Security.Authentication; 32 | 33 | namespace MySql.Data.MySqlClient.Tests 34 | { 35 | #region Configs 36 | #if !CF 37 | public class MySqlCommandTestsPipeCompressed : MySqlCommandTests 38 | { 39 | protected override string OnGetConnectionStringInfo() 40 | { 41 | return String.Format("protocol=namedpipe;pipe name={0};compress=true;ssl mode=none;", st.pipeName); 42 | } 43 | } 44 | #endif 45 | #endregion 46 | } -------------------------------------------------------------------------------- /Tests/MySql.Data.Tests/MySqlCommandTestsSharedMemory.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2013, 2015 Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | using System.Collections.Generic; 25 | using System.Text; 26 | using MySql.Data.MySqlClient; 27 | using MySql.Data.MySqlClient.Properties; 28 | using Xunit; 29 | using System.Data; 30 | using System.ComponentModel; 31 | using System.Security.Authentication; 32 | 33 | namespace MySql.Data.MySqlClient.Tests 34 | { 35 | #region Configs 36 | #if !CF 37 | public class MySqlCommandTestsSharedMemory : MySqlCommandTests 38 | { 39 | protected override string OnGetConnectionStringInfo() 40 | { 41 | return String.Format("protocol=sharedmemory; shared memory name={0};ssl mode=none;", st.memoryName); 42 | } 43 | } 44 | #endif 45 | #endregion 46 | } -------------------------------------------------------------------------------- /Tests/MySql.Data.Tests/MySqlCommandTestsSocketCompressed.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2013 Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | using System.Collections.Generic; 25 | using System.Text; 26 | using MySql.Data.MySqlClient; 27 | using MySql.Data.MySqlClient.Properties; 28 | using Xunit; 29 | using System.Data; 30 | using System.ComponentModel; 31 | using System.Security.Authentication; 32 | 33 | namespace MySql.Data.MySqlClient.Tests 34 | { 35 | #region Configs 36 | #if !CF 37 | public class MySqlCommandTestsSocketCompressed : MySqlCommandTests 38 | { 39 | protected override string OnGetConnectionStringInfo() 40 | { 41 | return ";compress=true"; 42 | } 43 | } 44 | #endif 45 | #endregion 46 | } -------------------------------------------------------------------------------- /Tests/MySql.Data.Tests/OutputParametersBatchPrepared.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2013 Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | using System.Collections.Generic; 25 | using System.Text; 26 | using MySql.Data.MySqlClient; 27 | using MySql.Data.MySqlClient.Properties; 28 | using Xunit; 29 | using System.Data; 30 | using System.ComponentModel; 31 | using System.Security.Authentication; 32 | 33 | namespace MySql.Data.MySqlClient.Tests 34 | { 35 | public class OutputParametersBatchPrepared : OutputParametersBatch 36 | { 37 | protected override string OnGetConnectionStringInfo() 38 | { 39 | prepare = true; 40 | return ";allow batch=true; ignore prepare = false;"; 41 | } 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /Tests/MySql.Data.Tests/OutputParametersNoBatch.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2013 Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | using System.Collections.Generic; 25 | using System.Text; 26 | using MySql.Data.MySqlClient; 27 | using MySql.Data.MySqlClient.Properties; 28 | using Xunit; 29 | using System.Data; 30 | using System.ComponentModel; 31 | using System.Security.Authentication; 32 | 33 | namespace MySql.Data.MySqlClient.Tests 34 | { 35 | public class OutputParametersNoBatch : OutputParametersBatch 36 | { 37 | protected override string OnGetConnectionStringInfo() 38 | { 39 | return ";allow batch=false;"; 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /Tests/MySql.Data.Tests/OutputParametersNoBatchPrepared.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2013 Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | using System.Collections.Generic; 25 | using System.Text; 26 | using MySql.Data.MySqlClient; 27 | using MySql.Data.MySqlClient.Properties; 28 | using Xunit; 29 | using System.Data; 30 | using System.ComponentModel; 31 | using System.Security.Authentication; 32 | 33 | namespace MySql.Data.MySqlClient.Tests 34 | { 35 | public class OutputParametersNoBatchPrepared : OutputParametersBatch 36 | { 37 | protected override string OnGetConnectionStringInfo() 38 | { 39 | prepare = true; 40 | return ";allow batch=false; ignore prepare=false; "; 41 | } 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /Tests/MySql.Data.Tests/PreparedStatementsPipe.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2013, 2015 Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | using System.Collections.Generic; 25 | using System.Text; 26 | using MySql.Data.MySqlClient; 27 | using MySql.Data.MySqlClient.Properties; 28 | using Xunit; 29 | using System.Data; 30 | using System.ComponentModel; 31 | using System.Security.Authentication; 32 | 33 | namespace MySql.Data.MySqlClient.Tests 34 | { 35 | public class PreparedStatementsPipe : PreparedStatements 36 | { 37 | protected override string OnGetConnectionStringInfo() 38 | { 39 | return string.Format(";ignore prepare=false;protocol=pipe;pipe name={0};ssl mode=none;", st.pipeName); 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /Tests/MySql.Data.Tests/PreparedStatementsPipeCompressed.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2013, 2015 Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | using System.Collections.Generic; 25 | using System.Text; 26 | using MySql.Data.MySqlClient; 27 | using MySql.Data.MySqlClient.Properties; 28 | using Xunit; 29 | using System.Data; 30 | using System.ComponentModel; 31 | using System.Security.Authentication; 32 | 33 | namespace MySql.Data.MySqlClient.Tests 34 | { 35 | public class PreparedStatementsPipeCompressed : PreparedStatements 36 | { 37 | protected override string OnGetConnectionStringInfo() 38 | { 39 | return string.Format(";ignore prepare=false;protocol=pipe;pipe name={0};compress=true;ssl mode=none;", st.pipeName); 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /Tests/MySql.Data.Tests/PreparedStatementsSharedMemory.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2013, 2015 Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | using System.Collections.Generic; 25 | using System.Text; 26 | using MySql.Data.MySqlClient; 27 | using MySql.Data.MySqlClient.Properties; 28 | using Xunit; 29 | using System.Data; 30 | using System.ComponentModel; 31 | using System.Security.Authentication; 32 | 33 | namespace MySql.Data.MySqlClient.Tests 34 | { 35 | public class PreparedStatementsSharedMemory : PreparedStatements 36 | { 37 | protected override string OnGetConnectionStringInfo() 38 | { 39 | return string.Format(";ignore prepare=false;protocol=memory; shared memory name={0};ssl mode=none;", st.memoryName); 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /Tests/MySql.Data.Tests/PreparedStatementsSharedMemoryCompressed.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2013, 2015 Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | using System.Collections.Generic; 25 | using System.Text; 26 | using MySql.Data.MySqlClient; 27 | using MySql.Data.MySqlClient.Properties; 28 | using Xunit; 29 | using System.Data; 30 | using System.ComponentModel; 31 | using System.Security.Authentication; 32 | 33 | namespace MySql.Data.MySqlClient.Tests 34 | { 35 | public class PreparedStatementsSharedMemoryCompressed : PreparedStatements 36 | { 37 | protected override string OnGetConnectionStringInfo() 38 | { 39 | return string.Format(";ignore prepare=false;protocol=memory; shared memory name={0};compress=true;ssl mode=none;", st.memoryName); 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /Tests/MySql.Data.Tests/PreparedStatementsSocketCompressed.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2013 Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | using System.Collections.Generic; 25 | using System.Text; 26 | using MySql.Data.MySqlClient; 27 | using MySql.Data.MySqlClient.Properties; 28 | using Xunit; 29 | using System.Data; 30 | using System.ComponentModel; 31 | using System.Security.Authentication; 32 | 33 | namespace MySql.Data.MySqlClient.Tests 34 | { 35 | public class PreparedStatementsSocketCompressed : PreparedStatements 36 | { 37 | protected override string OnGetConnectionStringInfo() 38 | { 39 | return ";ignore prepare=false;compress=true;"; 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /Tests/MySql.Data.Tests/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Tests/MySql.Data.Tests/Properties/AssemblyInfo.cs -------------------------------------------------------------------------------- /Tests/MySql.Data.Tests/Properties/Setup.sql: -------------------------------------------------------------------------------- 1 | DROP DATABASE IF EXISTS `[database0]`; CREATE DATABASE `[database0]`; 2 | GRANT ALL ON `[database0]`.* to 'test'@'localhost' IDENTIFIED BY 'test'; 3 | GRANT ALL ON `[database0]`.* to 'test'@'%' IDENTIFIED BY 'test'; 4 | 5 | DROP DATABASE IF EXISTS `[database1]`; CREATE DATABASE `[database1]`; 6 | GRANT ALL ON `[database1]`.* to 'test'@'localhost' IDENTIFIED BY 'test'; 7 | GRANT ALL ON `[database1]`.* to 'test'@'%' IDENTIFIED BY 'test'; 8 | 9 | FLUSH PRIVILEGES; 10 | 11 | SET GLOBAL max_allowed_packet = 1048576; 12 | 13 | DELETE FROM mysql.user WHERE length(user) = 0; 14 | DELETE FROM mysql.user WHERE user='nopass'; 15 | DELETE FROM mysql.user WHERE user='quotedUser'; 16 | 17 | FLUSH PRIVILEGES; 18 | -------------------------------------------------------------------------------- /Tests/MySql.Data.Tests/Threading.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Tests/MySql.Data.Tests/Threading.cs -------------------------------------------------------------------------------- /Tests/MySql.Data.Tests/TimeoutAndCancelPipe.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2013, 2015 Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | using System.Collections.Generic; 25 | using System.Text; 26 | using MySql.Data.MySqlClient; 27 | using MySql.Data.MySqlClient.Properties; 28 | using Xunit; 29 | using System.Data; 30 | using System.ComponentModel; 31 | using System.Security.Authentication; 32 | 33 | namespace MySql.Data.MySqlClient.Tests 34 | { 35 | public class TimeoutAndCancelPipe : TimeoutAndCancel 36 | { 37 | protected override string OnGetConnectionStringInfo() 38 | { 39 | return string.Format("protocol=namedpipe;pipe name={0};ssl mode=none;", st.pipeName); 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /Tests/MySql.Data.Tests/TimeoutAndCancelSharedMemory.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2013, 2015 Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | using System.Collections.Generic; 25 | using System.Text; 26 | using MySql.Data.MySqlClient; 27 | using MySql.Data.MySqlClient.Properties; 28 | using Xunit; 29 | using System.Data; 30 | using System.ComponentModel; 31 | using System.Security.Authentication; 32 | 33 | namespace MySql.Data.MySqlClient.Tests 34 | { 35 | public class TimeoutAndCancelSharedMemory : TimeoutAndCancel 36 | { 37 | protected override string OnGetConnectionStringInfo() 38 | { 39 | return string.Format("protocol=sharedmemory; shared memory name={0};ssl mode=none;", st.memoryName); 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /Tests/MySql.Data.Tests/TimeoutAndCancelSocketCompressed.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2013 Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | using System.Collections.Generic; 25 | using System.Text; 26 | using MySql.Data.MySqlClient; 27 | using MySql.Data.MySqlClient.Properties; 28 | using Xunit; 29 | using System.Data; 30 | using System.ComponentModel; 31 | using System.Security.Authentication; 32 | 33 | namespace MySql.Data.MySqlClient.Tests 34 | { 35 | public class TimeoutAndCancelSocketCompressed : TimeoutAndCancel 36 | { 37 | protected override string OnGetConnectionStringInfo() 38 | { 39 | return ";compress=true;"; 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /Tests/MySql.Data.Tests/Utils.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2013 Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | using System; 24 | 25 | namespace MySql.Data.MySqlClient.Tests 26 | { 27 | /// 28 | /// Summary description for Utils. 29 | /// 30 | public class Utils 31 | { 32 | 33 | public static byte[] CreateBlob(int size) 34 | { 35 | byte[] buf = new byte[size]; 36 | 37 | Random r = new Random(); 38 | r.NextBytes(buf); 39 | return buf; 40 | } 41 | } 42 | 43 | #if RT 44 | public class StringCollection : System.Collections.Generic.List 45 | { 46 | 47 | } 48 | #endif 49 | 50 | } 51 | -------------------------------------------------------------------------------- /Tests/MySql.Data.Tests/certificates/ca-cert.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIC8zCCAdugAwIBAgIJANhP2/c+4mslMA0GCSqGSIb3DQEBBQUAMBAxDjAMBgNV 3 | BAoMBU15U1FMMB4XDTE1MDEyOTAwMzM0NFoXDTI1MDEyOTAwMzM0NFowEDEOMAwG 4 | A1UECgwFTXlTUUwwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDFL5Y0 5 | C9Vk90eOOgekcxUNS/bmA/Ov4OtXwGQpPxKHZpwxTJXS6uJlIdE98sXNwEDE+RnO 6 | dqn96uxSL4sV4jG11ywXdII7ytSi0ulIumv1xcJ3a3jwwFT7NucNbrjImvkVhya4 7 | osd8vJPVzSJ+Kj5IRC2HUAXeTd5cF7sEAbR/wTHRmQioQN9DpKV+dnHhuI2zL/VG 8 | Nsh2pIf0ksiwF1w0eL/+1LLfZZly6AtFOfPJbCCscgGZaZZGNe5ZYlKRforDRGMb 9 | FBZ2Vb5/on35OrZQHF5Vn2/EzwkhgMpb1q+NSGO1kVVRaT70znLnlXvryOt7w4vo 10 | DP41Txo6RaWBm4oJAgMBAAGjUDBOMB0GA1UdDgQWBBTVBOUrTMirCUgyNTziY6Sy 11 | BV7F2DAfBgNVHSMEGDAWgBTVBOUrTMirCUgyNTziY6SyBV7F2DAMBgNVHRMEBTAD 12 | AQH/MA0GCSqGSIb3DQEBBQUAA4IBAQAqpd9HgHHBgw3Rqr+eOkHlWHPSurf310hn 13 | gNH3ww5FDUcMbozd9uhSYAwycN4YRwyKMzYlWblLeK8Otar7jmgLaHbb5JLF74/6 14 | Aw4eNMkqtY0gQ5ioooZX27lsGUxIktKmDCuENjGS0vwJxxOx4ARG4rP+SBKZEycJ 15 | pdFffGHv4+FcKxT5en9OSYTlMd8dbWo9L8qBfW+l1PqfkwwJOU3i8fu5EMu3AE6/ 16 | Woyou+/BZiE42lBqXAMtdKKcNuKJpIBvl/jUAsZaxmOAENW3g59TtJjXMY+SIe5p 17 | Nti7BYcpode/l8lF/R8DKTZNE8zol3A3BN2Wewf94FPLVdqEuy3x 18 | -----END CERTIFICATE----- 19 | -------------------------------------------------------------------------------- /Tests/MySql.Data.Tests/certificates/ca-key.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA PRIVATE KEY----- 2 | MIIEpAIBAAKCAQEAxS+WNAvVZPdHjjoHpHMVDUv25gPzr+DrV8BkKT8Sh2acMUyV 3 | 0uriZSHRPfLFzcBAxPkZznap/ersUi+LFeIxtdcsF3SCO8rUotLpSLpr9cXCd2t4 4 | 8MBU+zbnDW64yJr5FYcmuKLHfLyT1c0ifio+SEQth1AF3k3eXBe7BAG0f8Ex0ZkI 5 | qEDfQ6SlfnZx4biNsy/1RjbIdqSH9JLIsBdcNHi//tSy32WZcugLRTnzyWwgrHIB 6 | mWmWRjXuWWJSkX6Kw0RjGxQWdlW+f6J9+Tq2UBxeVZ9vxM8JIYDKW9avjUhjtZFV 7 | UWk+9M5y55V768jre8OL6Az+NU8aOkWlgZuKCQIDAQABAoIBAQCbO0gq9vnqf0UE 8 | sahcjQCQtDHNiGTqG84KCfqQAghLMbtakCkOnzzVUtcPxrRzspsKtfPb9s0CiVO7 9 | q5P6CVULCza5zE3OVnIpMJLYX3IoTKQ4MRJHrZH5JpKkn3q26lGW4gvYpMUY7LgR 10 | Q2mZGxZm+80/zf6gsHqR01i14cXAH+ySf9DhuQcS+aWYpUuANCgpG1BcmEYBOFug 11 | NJ3uRYgLUi1xFZEpmQZLxjO/PWWugMcwuLXCkfCEPbkbGjKBn2tN3v1VHTQ2/e/Z 12 | 7xZxRWV3yZST8BMYe2dpu4n8HrRuztZWTZrvSWs7QD/PAz27TJKC4ZZNMvarxcGb 13 | ta72nBG1AoGBAOS1buydbNpjCvQt5o0OrjhY5gcbbDUp7FnhXBWi9TKlDF67Ts1L 14 | NhAm44OQ7FCOxFnllE+nrEzaUWD/4oavnVI00uAPwiQj1faiYG+o6Zpk/1PXbjxE 15 | iwKHF2o0W4egOdq6MfpV1mEWlcHcSFQso7VQ6foKgXG8FY2x0J8EiEKXAoGBANy3 16 | MpKaw4qiuMLkr4fAVKf2V/SRh4/QYIdOq8uBEPZ5HlND0NSUGbRVJm1jm2GadS0o 17 | kQqDV+E3JX3wUzIahnzcVYVObB++HglpbCaioDfX2Jl5Dant4cArCq3Lg3gpnZde 18 | 6y5SMStCukMAo1M67b+OOL0GcybR850l7pLxqkxfAoGBAMnecvgaw9fHEAYS9aqP 19 | yKsnnHGtfMc4J8v1pIfcfDylfdOn1JhTyHZdPPgF1PAN87W9dDkSsHxtPuM1OMbU 20 | /zFuOqtWfW/UyaiWDjTAjOCgQNXKExzTCzfB8aLmb9u4SxiKvE5PsZekja69NoJF 21 | nIIP11XCLBstfoDA8HlLUNIlAoGAGr2HPwPJFQ7J27LhIU1H9GGAHn1TMzVHvJzn 22 | a2xjpbje16+rqVWYF6UJVs9uj9CqyaHUkLWA/CQ2Qp/PNI7KJG59Xf02VFIwSWug 23 | Ur35M0rPTyi/YwsTArk0PgIeF3zTPvec/quukVMwRdXZ88d77m1Iqn4RjW56WVuz 24 | H9Jvk3kCgYBeCk5DK4Il57FYHfdDL1TGdy4h0rXAstHNNXgVUS4b+Kih6IZ6F4YB 25 | bzhIdDaEXTr9a0/6KKce1sWbfLbkmsdT7wvF4Y2UPapucOIUDdZsIz7pUiLho5l3 26 | s+KZk2nwA7rU2dmyHbw2y7Ey1n/jETc9TzJP119JAT1cGBaU9/IgDA== 27 | -----END RSA PRIVATE KEY----- 28 | -------------------------------------------------------------------------------- /Tests/MySql.Data.Tests/certificates/client-key.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA PRIVATE KEY----- 2 | MIIEpAIBAAKCAQEApnAT2y/hpFeD26sSGgeP+R3E1zQDZbsRRyKSLJvytWWwG4xb 3 | 06rSxeEARIzl4wYJYQ5hm1J7bphG5hD9aG35TGhNX6+BjzQjRLC34p3ewtniw4lg 4 | VS3UMVihW4vQAZt5DG5ScoO8rFpfDz5EIZL7WWzAqkVpqTqM/F4EJ1/xzV5J+mXL 5 | xffiwCMZrVJRFRh/nd1ZFmtepjhAmgvuOqgSU+ymv/ppOguwTUlt+v1ciQPVlUTT 6 | eJw7DvYWfIqDht6YX7O6izNMeCzR3gW3WMn4bXI7jJ5FR2+vfCOJCBE5o0bTIFWU 7 | w01guKRuVqy+ptoQIuup1UQYSCpfs4Yr0sTqPQIDAQABAoIBAQCgzWwButMQipUU 8 | qMVGbMQG9WH2YYRex0u8JISBoPHvnB13oDYf3Mzi7a3qjQ6WNoDdSp23CQvEIE9v 9 | fD64pHfWAHew2Mod50uj0/D1e317WDOko5d09GAshOrwnbYLt4BOKFBz3x9sjauF 10 | +Kyum2lITrAeUg3xuGX6dYMh36qotL8DBLlcw7g68NfUy7U5VoJIEHS5BcDtryNh 11 | ekd1eNjnKq3niKZTW1fWVpJHpGYKd+bPjLLPIlu/zxBmDN2cEJITz7yUoWphKltu 12 | sC9/ScILMNPRvBcJCAKyTucon5iMvgc3bkGTMuPl4FRlwlVfCyfy7dT74l9h6jf8 13 | QXy5VYaBAoGBANi1X/bR86xxH4+/A1w4MNcrpu/t/rhKjr7gZCt7akZPYhEaFQLQ 14 | kH8dPmeRnsMUQp4Qdn66mRjYjoGuye6tUYs0gEuVy3DzRMncoffzxA9wWAN/Jy/C 15 | tMoRloVtMfJi9vinC/L3FeuKTcQxmwfn9AXLDrx3XOa4MkuVFaZffActAoGBAMSd 16 | XYAjsjsFLLfxUX7XT3QeRF1D6EmcqqSAV4i4wUruGppchRxLUCUHAQ1jnAPh+ZBv 17 | vlXLSwhDaXbpqR3j8vX54EP+zUUnjoHDQc8qLtx1mVZn4pQWND8TCS3p6VMezwAg 18 | Cu+Wv77kNCCjn3OkH4dvlrUQYCIf7cDBtaE7KFlRAoGBAMsD/8bmoXUm9P5hX/CA 19 | 46BwUI/tUfesQVYoOS9TCxibPa/v00czxGqRJuk3zpfK3y3dFmVawho4pihvatWi 20 | oQXcRWSKDHDgNc02WLZFM6OTB6Ee+cMQkPXMzEprJaOBewUu2U7gkzR5+KiYIDij 21 | 4EOdG00MNYgff163Z/TY9wRxAoGAaE/dFWja3HlIWmbLh/IPk1mjh5/Jk5Rs7E2z 22 | IzRySKC+uHqxnGtQn/RxWHsqgNzZHQpL/xSWQFITmCUrtlIDywDBPRHoMfJkpu/C 23 | 8Hg+2HQD4FXJXivRmE0vJ47cXV8RD83wP2DJZiuIhHCK3j2LBL3tRS7k8fXim8up 24 | 41qRc6ECgYAI2iKTgjhWXVBspWob3HIMSEGyAqB5PP+GT+uT/znHfhj5qTCWx9lT 25 | 9lrz7oCxLUhF5scA2FQwPKnKB0Srh7bO1LvZOUxjpKX2PiaCgnJIp6flLXDMvKNg 26 | 8RnWFz39dNjV34IB6RCgeBJsOp9PBJ/m7oRolK9hr6PJErDEdtp2xQ== 27 | -----END RSA PRIVATE KEY----- 28 | -------------------------------------------------------------------------------- /Tests/MySql.Data.Tests/certificates/server-key.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA PRIVATE KEY----- 2 | MIIEpAIBAAKCAQEA1dl2n2Hzsc9rQusd804J6bMpLlsUAh9adusxgGm7obNmzV+4 3 | LOhu0gRAdba3k4w66te0nbP6W3Yv6i8lODUcEFhNEHJDH2aUgY5/iu7eNWqFw1fy 4 | Tp2n9l7Fw7LL6vaToobEgzgsHrUnvJ1eBycqNpacGRsyeHOCIMkQo0nK3rCuCNdT 5 | cQztgy9MJlP5MeQ1Mn+24KA2uhkAqP8u2dwrEOJA/Sksj5XhjXZGYzc/G2DQq80d 6 | UVCLPAp6wizH8f3kqN0/nKHLgOJjPfPhrVyaqyD01eZKGuT5PAO1Hcts2eED5unS 7 | zjY2nit1d4UsOqjFZV+MOJJ+wmIRogaluRxtxQIDAQABAoIBAQCCXV+DKiN1cgzh 8 | bpODjz9byGyCZeN8p8BuXlJ/BfXsTYGOEZwlREzKmuzw1cJzoDkKkRT6To2A1DvB 9 | d5wo97dz/2B7diyVJ+PAVy5Jc/Tie12wCB0e791Ew+Gru4O0aTz3B1Ek7Ul4Ltda 10 | lFSN58JEJOxkIcBSzZe2hNwvrvyNY+puFLeC8ttrkXzNyTp2a+XDo244ywU96uyZ 11 | 166gynNVbsUQcy1o/F3BZpQ/ToqxwXRJOZNdPsR/g+fvDiY8xHXM/wbRgM/0S0im 12 | 19WlXqpIkMiGXWZxf8hoDLD7XdG/2dc/xUB07h90kmnAMgb5e8/etAcdnPAL7n9J 13 | Xb02XVrBAoGBAOo9OU+N0tVZiA49Pf1nxDwFLtit0/ruSlEHYMuods/yCelupc+y 14 | WppmtpC0CX5tjp+fUj6GYMDwb9rnzFZNrBMUvrG3JDsB4m0Xq92sj4y6DSVA6EB9 15 | siE4vXNWrFayhEIARh0yaGqUs5t/8h3pGmFWYA9C4aANOr/ACstQIhQjAoGBAOm3 16 | Uro6GZrjwJ0otsoRcK70DJNhfTNvOl7QCMCJge71ngqrXy+S1vebmOt4nlyDF/iX 17 | uE2tznWFEMkmnWlEfprSbCPIHrinA6wDAqFKlwbsftaB/NPmJ7U1EWZTsCzThtlR 18 | Lu8pS3ZPeruagrV1up7xI4n4Ol5KvngtDLoxCQD3AoGBAK4h9Yj+lc2lUU/El2Da 19 | 0zcLY1gRYZUZsIWsRnkgM7NC67ttVjahEFnYIcBRFv211GE1v55bp3HHTGAgEffW 20 | piVJNrpGu9hh/kG7ZzjUH6MubLdVGVNYHiQ0WiJ0PIn3C/tE2Nq7roQNJ7hh1UwH 21 | DmVuINs3jSO+sf36dgvO9oahAoGASV+7ginBZiZAj1Z75H6LMPH/jLmbk+1ElwWa 22 | 6c+B0mKcJl9c99OS15Oq86oflY22ld4UB5ccbTrEZVJRMv5E/Rg4yRcHxhLxDSy4 23 | w6hmN89BltiiZmgoaTRq7QQzGC+kc0+Qe5csUM1tC77bcFqwpzuvW55pvLaci6Ah 24 | EcdZO0sCgYBYOEg0w4KlfC6sZP3EEXObw2hU8F4D+e0BMs3e1fFd/YHmn/w0yFsA 25 | P82/YdHPhGBxC4P2JbCFvHi9ZoNGx8Y6xudAarITGRDO4NmKPMdT02HYW/OsxxgF 26 | S68ka+5k+lvBum2aHpuCaReMxO/ZfFuW2btC0Tx/AuImPKBJ0GH9oQ== 27 | -----END RSA PRIVATE KEY----- 28 | -------------------------------------------------------------------------------- /Tests/MySql.Data.Tests/client.pfx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SapientGuardian/mysql-connector-net-netstandard/0d7ecb78feb83450c021e7923599de84783b07a5/Tests/MySql.Data.Tests/client.pfx -------------------------------------------------------------------------------- /Tests/MySql.Replication.Tests/App.config: -------------------------------------------------------------------------------- 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 | -------------------------------------------------------------------------------- /Tests/MySql.Replication.Tests/Resources/01_Startup_root_script.sql: -------------------------------------------------------------------------------- 1 | -- Users 2 | 3 | GRANT ALL ON *.* TO lbuser@localhost IDENTIFIED BY 'lbpass'; 4 | 5 | REVOKE SUPER ON *.* FROM lbuser@localhost; 6 | -------------------------------------------------------------------------------- /Tests/MySql.Replication.Tests/Resources/02_Startup_script.sql: -------------------------------------------------------------------------------- 1 | DROP DATABASE IF EXISTS {0}; 2 | 3 | 4 | CREATE DATABASE {0}; 5 | USE {0}; 6 | 7 | CREATE TABLE items ( 8 | item_id int primary key auto_increment, 9 | description varchar(50) not null, 10 | brand varchar(50), 11 | price float not null, 12 | quantity int not null 13 | ); 14 | 15 | CREATE TABLE stores( 16 | store_id int primary key auto_increment, 17 | name varchar(50) not null, 18 | address varchar(100) 19 | ); 20 | 21 | CREATE TABLE employees( 22 | employee_id int primary key auto_increment, 23 | name varchar(50) not null, 24 | store_id int, 25 | active bool 26 | ); 27 | 28 | CREATE TABLE orders( 29 | order_id int primary key auto_increment, 30 | employee_id int not null, 31 | client_name varchar(50) 32 | ); 33 | 34 | CREATE TABLE order_details( 35 | order_id int not null, 36 | item_id int not null, 37 | quantity int, 38 | price float, 39 | discount float 40 | ); 41 | 42 | 43 | 44 | -- Populating data 45 | 46 | INSERT INTO stores VALUES(null, 'Main', 'Superdome Minessota'); 47 | 48 | INSERT INTO items VALUES(null, 'Wings', 'OwnMark', 12.99, 12); 49 | INSERT INTO items VALUES(null, 'Cookies', 'The Bear', 1.99, 1); 50 | INSERT INTO items VALUES(null, 'Icecream', 'Vanilla', 2.99, 1); 51 | 52 | INSERT INTO employees VALUES(null, 'Marcelino', 1, true); 53 | -------------------------------------------------------------------------------- /Tests/MySql.Web.Tests/SessionLocking/Global.asax: -------------------------------------------------------------------------------- 1 |  2 | 3 | <%@ Application Codebehind="Global.asax.cs" Inherits="MySql.Web.Tests.Global" Language="C#" %> 4 | -------------------------------------------------------------------------------- /Tests/MySql.Web.Tests/SessionLocking/InitSessionLocking.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InitSessionLocking.aspx.cs" Inherits="MySql.Web.Tests.SessionLocking.InitSessionLocking" %> 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
12 | 13 |
14 |
15 | 16 | 17 | -------------------------------------------------------------------------------- /Tests/MySql.Web.Tests/SessionLocking/InitSessionLocking.aspx.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2004, 2013, Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | // This code was contributed by Sean Wright (srwright@alcor.concordia.ca) on 2007-01-12 24 | // The copyright was assigned and transferred under the terms of 25 | // the MySQL Contributor License Agreement (CLA) 26 | 27 | using System; 28 | using System.Collections.Generic; 29 | using System.Web; 30 | using System.Web.UI; 31 | using System.Web.UI.WebControls; 32 | 33 | namespace MySql.Web.Tests.SessionLocking 34 | { 35 | public partial class InitSessionLocking : System.Web.UI.Page 36 | { 37 | protected void Page_Load(object sender, EventArgs e) 38 | { 39 | 40 | } 41 | } 42 | } -------------------------------------------------------------------------------- /Tests/MySql.Web.Tests/SessionLocking/InitSessionLocking.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace MySql.Web.Tests.SessionLocking 11 | { 12 | 13 | 14 | public partial class InitSessionLocking 15 | { 16 | 17 | /// 18 | /// form1 control. 19 | /// 20 | /// 21 | /// Auto-generated field. 22 | /// To modify move field declaration from designer file to code-behind file. 23 | /// 24 | protected global::System.Web.UI.HtmlControls.HtmlForm form1; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Tests/MySql.Web.Tests/SessionLocking/Web.config: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /Tests/MySql.Web.Tests/SessionLocking/read.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" AutoEventWireup="true" EnableSessionState="ReadOnly" CodeBehind="read.aspx.cs" Inherits="MySql.Web.Tests.read" %> 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
12 | 13 |
14 |
15 | 16 | 17 | -------------------------------------------------------------------------------- /Tests/MySql.Web.Tests/SessionLocking/read.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace MySql.Web.Tests { 11 | 12 | 13 | public partial class read { 14 | 15 | /// 16 | /// form1 control. 17 | /// 18 | /// 19 | /// Auto-generated field. 20 | /// To modify move field declaration from designer file to code-behind file. 21 | /// 22 | protected global::System.Web.UI.HtmlControls.HtmlForm form1; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Tests/MySql.Web.Tests/SessionLocking/web_config_src.txt: -------------------------------------------------------------------------------- 1 |  2 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /Tests/MySql.Web.Tests/SessionLocking/write.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" AutoEventWireup="true" EnableSessionState="True" CodeBehind="write.aspx.cs" Inherits="MySql.Web.Tests.write" %> 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
12 | 13 |
14 |
15 | 16 | 17 | -------------------------------------------------------------------------------- /Tests/MySql.Web.Tests/SessionLocking/write.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace MySql.Web.Tests { 11 | 12 | 13 | public partial class write { 14 | 15 | /// 16 | /// form1 control. 17 | /// 18 | /// 19 | /// Auto-generated field. 20 | /// To modify move field declaration from designer file to code-behind file. 21 | /// 22 | protected global::System.Web.UI.HtmlControls.HtmlForm form1; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Tests/MySql.Web.Tests/SessionLocking/write2.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" AutoEventWireup="true" EnableSessionState="True" CodeBehind="write2.aspx.cs" Inherits="MySql.Web.Tests.write2" %> 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
12 | 13 |
14 |
15 | 16 | 17 | -------------------------------------------------------------------------------- /Tests/MySql.Web.Tests/SessionLocking/write2.aspx.cs: -------------------------------------------------------------------------------- 1 | // Copyright © 2004, 2013, Oracle and/or its affiliates. All rights reserved. 2 | // 3 | // MySQL Connector/NET is licensed under the terms of the GPLv2 4 | // , like most 5 | // MySQL Connectors. There are special exceptions to the terms and 6 | // conditions of the GPLv2 as it is applied to this software, see the 7 | // FLOSS License Exception 8 | // . 9 | // 10 | // This program is free software; you can redistribute it and/or modify 11 | // it under the terms of the GNU General Public License as published 12 | // by the Free Software Foundation; version 2 of the License. 13 | // 14 | // This program is distributed in the hope that it will be useful, but 15 | // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 | // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 17 | // for more details. 18 | // 19 | // You should have received a copy of the GNU General Public License along 20 | // with this program; if not, write to the Free Software Foundation, Inc., 21 | // 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 | 23 | // This code was contributed by Sean Wright (srwright@alcor.concordia.ca) on 2007-01-12 24 | // The copyright was assigned and transferred under the terms of 25 | // the MySQL Contributor License Agreement (CLA) 26 | 27 | using System; 28 | using System.Collections.Generic; 29 | #if CLR4 30 | 31 | #endif 32 | using System.Web; 33 | using System.Web.UI; 34 | using System.Web.UI.WebControls; 35 | 36 | namespace MySql.Web.Tests 37 | { 38 | public partial class write2 : System.Web.UI.Page 39 | { 40 | protected void Page_Load(object sender, EventArgs e) 41 | { 42 | Session["x"] = "x2"; 43 | } 44 | } 45 | } -------------------------------------------------------------------------------- /Tests/MySql.Web.Tests/SessionLocking/write2.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | namespace MySql.Web.Tests { 11 | 12 | 13 | public partial class write2 { 14 | 15 | /// 16 | /// form1 control. 17 | /// 18 | /// 19 | /// Auto-generated field. 20 | /// To modify move field declaration from designer file to code-behind file. 21 | /// 22 | protected global::System.Web.UI.HtmlControls.HtmlForm form1; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Tests/MySql.Web.Tests/SessionLockingBuild.bat: -------------------------------------------------------------------------------- 1 | 2 | xcopy /i /y %1\*.* %2 -------------------------------------------------------------------------------- /appveyor.yml: -------------------------------------------------------------------------------- 1 | version: 6.9.8{build} 2 | image: Visual Studio 2015 3 | build_script: 4 | - cmd: >- 5 | move Source\MySql.Data Source\SapientGuardian.MySql.Data 6 | 7 | dotnet restore -v Warning 8 | 9 | dotnet pack .\Source\SapientGuardian.MySql.Data -o .\artifacts\SapientGuardian.MySql.Data -c Release 10 | artifacts: 11 | - path: 'artifacts\**\*.nupkg' 12 | deploy: 13 | provider: NuGet 14 | api_key: 15 | secure: 7nX5a7V6wWbtPSJ6bQSU9BRZwJEdn70w0Ydlf5fuk44Gjk9BVgxnYK6u8MNzT2yA 16 | artifact: /.*\.nupkg/ 17 | on: 18 | branch: 6.9_netstandard 19 | appveyor_repo_tag: true -------------------------------------------------------------------------------- /global.json: -------------------------------------------------------------------------------- 1 | { 2 | "projects": [ "Source/MySql.Data" ], 3 | "sdk": { 4 | "version": "1.0.0-preview2-003121" 5 | } 6 | } 7 | --------------------------------------------------------------------------------