Issue in Migration DotNet Core during initial start. #138281
Unanswered
Aditya-Agarwal01
asked this question in
API and Webhooks
Replies: 1 comment
-
I suspect that within one of the following classes: Let me know if this helps! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Question
Body
When we create new project for Dot Net Core having Identity Framework for User, Role etc now we have try to do migration for these but got stuck and giving this error during add-migration comment.
An error occurred while accessing the Microsoft.Extensions.Hosting services. Continuing without the application service provider. Error: Method not found: 'System.Collections.Generic.IEnumerable
1<Microsoft.EntityFrameworkCore.Metadata.IMutableProperty> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType.GetProperties()'. Unable to create a 'DbContext' of type 'AuthDbContext'. The exception 'Method not found: 'System.Collections.Generic.IEnumerable
1<Microsoft.EntityFrameworkCore.Metadata.IMutableProperty> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType.GetProperties()'.' was thrown while attempting to create an instance. For the different patterns supported at design time, see https://go.microsoft.com/fwlink/?linkid=851728DbContext :- `public class AuthDbContext : IdentityDbContext<User, Role, string>
{
#pragma warning disable 1591
#pragma warning restore 1591
}`
In Program.cs we describe their AddDbContextPool for configuration.
Can anyone suggest what mistake i done in the code.
Beta Was this translation helpful? Give feedback.
All reactions