https://github.com/angelodotnet/aspnetcoreidentity.mysql
This application is an updated clone of the homonymous application of the one developed by BrightSoul.
https://github.com/angelodotnet/aspnetcoreidentity.mysql
Last synced: about 1 year ago
JSON representation
This application is an updated clone of the homonymous application of the one developed by BrightSoul.
- Host: GitHub
- URL: https://github.com/angelodotnet/aspnetcoreidentity.mysql
- Owner: AngeloDotNet
- Created: 2021-08-09T13:31:17.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-09T16:21:32.000Z (almost 5 years ago)
- Last Synced: 2025-04-02T06:37:35.551Z (about 1 year ago)
- Language: C#
- Homepage: https://bit.ly/3ApuBg3
- Size: 646 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ASP.NET Core Identity template for MySql
This is a demo ASP.NET Core application for .NET 5 using MySql.
It's basically the starting project you can get by running:
```
dotnet new mvc --auth Individual --use-local-db
```
But it's been updated to use MySql.
* Referenced the `Pomelo.EntityFrameworkCore.MySql` and `Microsoft.EntityFrameworkCore.Design` NuGet packages;
* Replaced `UseSqlServer` with `UseMySql` in the [Startup](Startup.cs#L31) class;
* Removed all migrations and re-generated them by running the command:
```
dotnet ef migrations add InitialMigration
```
# Getting Started
1. Create a MySql database;
2. Update the connection string in the `appsettings.json` file;
3. Run the commands
```
dotnet tool install --global dotnet-ef
dotnet ef database update
```
4. Start debugging the application by pressing `F5` in Visual Studio Code and register your first user.