commit
88d572010f
|
@ -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)
|
||||
|
|
|
@ -18,9 +18,7 @@ namespace IdentityMySQLDemo
|
|||
{
|
||||
// query to check if MigrationHistory table is present in the database
|
||||
var migrationHistoryTableExists = ((IObjectContextAdapter)context).ObjectContext.ExecuteStoreQuery<int>(
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue