From 507373e95e6e19b04ab7c9714678ecc48daf1934 Mon Sep 17 00:00:00 2001 From: Luke Latham Date: Sat, 23 Sep 2017 01:01:29 -0500 Subject: [PATCH 1/2] Clarify MySQL schema in topic example Fixes #3260 --- .../samples/sample6.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/aspnet/identity/overview/getting-started/aspnet-identity-using-mysql-storage-with-an-entityframework-mysql-provider/samples/sample6.cs b/aspnet/identity/overview/getting-started/aspnet-identity-using-mysql-storage-with-an-entityframework-mysql-provider/samples/sample6.cs index 89350e969f..149e04baf2 100644 --- a/aspnet/identity/overview/getting-started/aspnet-identity-using-mysql-storage-with-an-entityframework-mysql-provider/samples/sample6.cs +++ b/aspnet/identity/overview/getting-started/aspnet-identity-using-mysql-storage-with-an-entityframework-mysql-provider/samples/sample6.cs @@ -18,9 +18,7 @@ namespace IdentityMySQLDemo { // query to check if MigrationHistory table is present in the database var migrationHistoryTableExists = ((IObjectContextAdapter)context).ObjectContext.ExecuteStoreQuery( - string.Format( - "SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = '{0}' AND table_name = '__MigrationHistory'", - "[Insert your database schema here - such as 'users']")); + "SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = 'IdentityMySQLDatabase' AND table_name = '__MigrationHistory'"); // if MigrationHistory table is not there (which is the case first time we run) - create it if (migrationHistoryTableExists.FirstOrDefault() == 0) From cc37c4e14dc7602f2445f40be395c5528c8c2ec0 Mon Sep 17 00:00:00 2001 From: Scott Addie Date: Tue, 26 Sep 2017 21:55:10 -0500 Subject: [PATCH 2/2] Fix typo --- ...sing-mysql-storage-with-an-entityframework-mysql-provider.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnet/identity/overview/getting-started/aspnet-identity-using-mysql-storage-with-an-entityframework-mysql-provider.md b/aspnet/identity/overview/getting-started/aspnet-identity-using-mysql-storage-with-an-entityframework-mysql-provider.md index b6f9fde113..e3dbced9af 100644 --- a/aspnet/identity/overview/getting-started/aspnet-identity-using-mysql-storage-with-an-entityframework-mysql-provider.md +++ b/aspnet/identity/overview/getting-started/aspnet-identity-using-mysql-storage-with-an-entityframework-mysql-provider.md @@ -51,7 +51,7 @@ At the end of this tutorial, you will have an MVC application with the ASP.NET I [Click the following image to expand it. ] [![](aspnet-identity-using-mysql-storage-with-an-entityframework-mysql-provider/_static/image10.png)](aspnet-identity-using-mysql-storage-with-an-entityframework-mysql-provider/_static/image9.png) -7. Copy the connection string by clicking on the copy button by the **CONECTIONSTRING** field and save it; you will use this information later in this tutorial for your MVC application: +7. Copy the connection string by clicking on the copy button by the **CONNECTIONSTRING** field and save it; you will use this information later in this tutorial for your MVC application: [Click the following image to expand it. ] [![](aspnet-identity-using-mysql-storage-with-an-entityframework-mysql-provider/_static/image12.png)](aspnet-identity-using-mysql-storage-with-an-entityframework-mysql-provider/_static/image11.png)