Sticky
Sticky
CC#
Created by Sticky on 6/30/2024 in #help
✅ 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?
16 replies
CC#
Created by Sticky on 6/28/2024 in #help
Tidying and making a repeat column faster
Hi, I'm making an website and i need to format string so that every symbol is formatted into its appropiate counterpart like shown below:
text = text.Replace(" ", "-");
text = text.Replace("ı", "i");
text = text.Replace("ğ", "g");
text = text.Replace("ü", "u");
text = text.Replace("ö", "o");
text = text.Replace("ş", "s");
text = text.Replace("ç", "c");
text = text.Replace("_", "-");
text = text.Replace("/", "-");
/*
more under here
*/
text = text.Replace(" ", "-");
text = text.Replace("ı", "i");
text = text.Replace("ğ", "g");
text = text.Replace("ü", "u");
text = text.Replace("ö", "o");
text = text.Replace("ş", "s");
text = text.Replace("ç", "c");
text = text.Replace("_", "-");
text = text.Replace("/", "-");
/*
more under here
*/
how can i make this code far cleaner and faster?
22 replies
CC#
Created by Sticky on 2/18/2024 in #help
✅ Filter Deserialized JSON data
My issue is that i want to filter a food list API's json data by the date and i am quite new to Newtonsoft.Json library and API in general. I can leave a snippet of the food list too .
56 replies