C
C#7mo ago
Sticky

✅ I cannot create a database

It occurs when i try to run my website project or do "add-migration" to create a database.
MissingMethodException: Method not found: 'Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder`1<!!0> Microsoft.EntityFrameworkCore.RelationalIndexBuilderExtensions.HasName(Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder`1<!!0>, System.String)'.

Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserContext<TUser, TKey, TUserClaim, TUserLogin, TUserToken>+<>c__DisplayClass20_0.<OnModelCreating>b__0(EntityTypeBuilder<TUser> b)
MissingMethodException: Method not found: 'Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder`1<!!0> Microsoft.EntityFrameworkCore.RelationalIndexBuilderExtensions.HasName(Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder`1<!!0>, System.String)'.

Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserContext<TUser, TKey, TUserClaim, TUserLogin, TUserToken>+<>c__DisplayClass20_0.<OnModelCreating>b__0(EntityTypeBuilder<TUser> b)
What am i supposed to do at this point?
6 Replies
FestivalDelGelato
make sure everything is the same version, and that there are no warnings
Sticky
StickyOP7mo ago
no real warnings that affect the code it seems only some mutable nullable warnings can it be cross project incompatiblity? it was that smh i always forget that this time i didnt see a lib was depreciated at 3.0.5 ty
FestivalDelGelato
but still there should be a warning for this
Sticky
StickyOP7mo ago
it was depricated but i downloaded 8.x versions of helper libs for it so i guess that was the issue no errors were there
Unknown User
Unknown User7mo ago
Message Not Public
Sign In & Join Server To View
Sticky
StickyOP7mo ago
İ simply forgot to close it, the kssue was what ffmeg said

Did you find this page helpful?