.NET Core creates AspNet tables incompatible with .NET Framework 4.5

Ben Junior 11 Reputation points
2021-08-06T18:00:15.51+00:00

From an ASP.NET MVC project (on .NET 4.5) I created a SQL Server database (and security using Microsoft.AspNet.Identity.EntityFramework.) using EF and the Package Manager. So far so good.

A few years later, now, I created another project using Blazor on .NET 5 and EF Core and implemented the security using Microsoft.AspNetCore.Components.Authorization and Identity.

The problem now is that I need both programs to access the same database but Blazor / .NET 5 errors on LogIn saying that there are invalid fields. I compared both tables and I can see that the AspNetUsers from .NET Core has additional columns, and so the AspNetRules which I also use.

I cannot rebuild the ASP.NET project in .NET Core because it uses old 3rd party libraries. Is there a solution?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,928 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,595 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,021 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.