Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- C:\Users\stafoya\RiderProjects\Index.txt>dotnet ef migrations add AddingOldStuff
- System.InvalidOperationException: The entity type 'IdentityUserLogin<string>' requires a primary key to be defined.
- at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.ValidateNonNullPrimaryKeys(IModel model)
- at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.Validate(IModel model)
- at Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidator.Validate(IModel model)
- at Microsoft.EntityFrameworkCore.Internal.SqliteModelValidator.Validate(IModel model)
- at Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.ValidatingConvention.Apply(InternalModelBuilder modelBuilder)
- at Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.ConventionDispatcher.ImmediateConventionScope.OnModelBuilt(InternalModelBuilder modelBuilder)
- at Microsoft.EntityFrameworkCore.ModelBuilder.FinalizeModel()
- at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
- at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
- at System.Lazy`1.CreateValue()
- at Microsoft.EntityFrameworkCore.Internal.DbContextServices.CreateModel()
- at Microsoft.EntityFrameworkCore.Internal.DbContextServices.get_Model()
- at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScoped(ScopedCallSite scopedCallSite, ServiceProviderEngineScope scope)
- at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, ServiceProviderEngineScope scope)
- at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScoped(ScopedCallSite scopedCallSite, ServiceProviderEngineScope scope)
- at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
- at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
- at Microsoft.EntityFrameworkCore.DbContext.get_DbContextDependencies()
- at Microsoft.EntityFrameworkCore.DbContext.get_InternalServiceProvider()
- at Microsoft.EntityFrameworkCore.Internal.InternalAccessorExtensions.GetService[TService](IInfrastructure`1 accessor)
- at Microsoft.EntityFrameworkCore.Design.Internal.DbContextOperations.CreateContext(Func`1 factory)
- at Microsoft.EntityFrameworkCore.Design.Internal.DbContextOperations.CreateContext(String contextType)
- at Microsoft.EntityFrameworkCore.Design.Internal.MigrationsOperations.AddMigration(String name, String outputDir, String contextType)
- at Microsoft.EntityFrameworkCore.Design.OperationExecutor.AddMigrationImpl(String name, String outputDir, String contextType)
- at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.<>c__DisplayClass3_0`1.<Execute>b__0()
- at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.Execute(Action action)
- The entity type 'IdentityUserLogin<string>' requires a primary key to be defined.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement