C
C#5mo 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
Omnissiah
Omnissiah5mo ago
make sure everything is the same version, and that there are no warnings
Sticky
StickyOP5mo 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
Omnissiah
Omnissiah5mo ago
but still there should be a warning for this
Sticky
StickyOP5mo 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 User5mo ago
Message Not Public
Sign In & Join Server To View
Sticky
StickyOP5mo ago
İ simply forgot to close it, the kssue was what ffmeg said
Want results from more Discord servers?
Add your server