Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.06 KB | None | 0 0
  1. C:\Users\stafoya\RiderProjects\Index.txt>dotnet ef migrations add AddingOldStuff
  2. System.InvalidOperationException: The entity type 'IdentityUserLogin<string>' requires a primary key to be defined.
  3. at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.ValidateNonNullPrimaryKeys(IModel model)
  4. at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.Validate(IModel model)
  5. at Microsoft.EntityFrameworkCore.Infrastructure.RelationalModelValidator.Validate(IModel model)
  6. at Microsoft.EntityFrameworkCore.Internal.SqliteModelValidator.Validate(IModel model)
  7. at Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.ValidatingConvention.Apply(InternalModelBuilder modelBuilder)
  8. at Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.ConventionDispatcher.ImmediateConventionScope.OnModelBuilt(InternalModelBuilder modelBuilder)
  9. at Microsoft.EntityFrameworkCore.ModelBuilder.FinalizeModel()
  10. at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
  11. at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
  12. at System.Lazy`1.CreateValue()
  13. at Microsoft.EntityFrameworkCore.Internal.DbContextServices.CreateModel()
  14. at Microsoft.EntityFrameworkCore.Internal.DbContextServices.get_Model()
  15. at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScoped(ScopedCallSite scopedCallSite, ServiceProviderEngineScope scope)
  16. at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, ServiceProviderEngineScope scope)
  17. at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScoped(ScopedCallSite scopedCallSite, ServiceProviderEngineScope scope)
  18. at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
  19. at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
  20. at Microsoft.EntityFrameworkCore.DbContext.get_DbContextDependencies()
  21. at Microsoft.EntityFrameworkCore.DbContext.get_InternalServiceProvider()
  22. at Microsoft.EntityFrameworkCore.Internal.InternalAccessorExtensions.GetService[TService](IInfrastructure`1 accessor)
  23. at Microsoft.EntityFrameworkCore.Design.Internal.DbContextOperations.CreateContext(Func`1 factory)
  24. at Microsoft.EntityFrameworkCore.Design.Internal.DbContextOperations.CreateContext(String contextType)
  25. at Microsoft.EntityFrameworkCore.Design.Internal.MigrationsOperations.AddMigration(String name, String outputDir, String contextType)
  26. at Microsoft.EntityFrameworkCore.Design.OperationExecutor.AddMigrationImpl(String name, String outputDir, String contextType)
  27. at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.<>c__DisplayClass3_0`1.<Execute>b__0()
  28. at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.Execute(Action action)
  29. The entity type 'IdentityUserLogin<string>' requires a primary key to be defined.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement