Metalkon
Metalkon
CC#
Created by Metalkon on 3/8/2024 in #help
Storing Item Information?
where important stuff is server side and db only
8 replies
CC#
Created by Metalkon on 3/8/2024 in #help
Storing Item Information?
client side would only display the info in the bottom part of my post
8 replies
CC#
Created by Metalkon on 1/22/2024 in #help
Am I doing this correctly? (Foreign Keys & Such, Entity Framework & SQL Server)
no clue what a blob is 😄
37 replies
CC#
Created by Metalkon on 1/22/2024 in #help
Am I doing this correctly? (Foreign Keys & Such, Entity Framework & SQL Server)
Was thinking maybe separate database tables would help with this.
37 replies
CC#
Created by Metalkon on 1/22/2024 in #help
Am I doing this correctly? (Foreign Keys & Such, Entity Framework & SQL Server)
I do have some worries about using a json. While im using a test project here in this help thread (for learning purposes and testing how it works), my intention in the real project im working on is to save user game data, which includes player inventories which consist of lists of item objects and i'm worried about database performance, api performance of converting jsons every http request, or various string limits. These strings could be 4-5 digits worth of chars so idk if a json string is enough to handle it. I could probably impose inventory size limits (ex: 99 items) but the string could still be thousands of chars long.
37 replies
CC#
Created by Metalkon on 1/22/2024 in #help
Am I doing this correctly? (Foreign Keys & Such, Entity Framework & SQL Server)
Btw I cannot modify the refresh token string through the usermodel like this api in the original code.
[HttpGet("GetTest")]
public async Task<ActionResult<string>> Get(int id)
{
UserModel user = await _db.Users.FirstAsync(x => x.Id == id);

user.TestToken.Token = "meow mix cat food";
await _db.SaveChangesAsync();

return Ok(user.TestToken.Token);
}
[HttpGet("GetTest")]
public async Task<ActionResult<string>> Get(int id)
{
UserModel user = await _db.Users.FirstAsync(x => x.Id == id);

user.TestToken.Token = "meow mix cat food";
await _db.SaveChangesAsync();

return Ok(user.TestToken.Token);
}
37 replies
CC#
Created by Metalkon on 1/22/2024 in #help
Am I doing this correctly? (Foreign Keys & Such, Entity Framework & SQL Server)
is unix time generally the way to go in most apps compared to utc?
37 replies
CC#
Created by Metalkon on 1/22/2024 in #help
Am I doing this correctly? (Foreign Keys & Such, Entity Framework & SQL Server)
sql server
37 replies
CC#
Created by Metalkon on 1/22/2024 in #help
Am I doing this correctly? (Foreign Keys & Such, Entity Framework & SQL Server)
No description
37 replies
CC#
Created by Metalkon on 1/22/2024 in #help
Am I doing this correctly? (Foreign Keys & Such, Entity Framework & SQL Server)
random words influenced by my cat on my desk lol
37 replies
CC#
Created by Metalkon on 11/21/2023 in #help
✅ Fresh Install of Windows, I'm Getting Weird Errors (NETSDK1/NU1012, and DEP0700)
Not even doing anything related to mac, and never had these errors beforehand and the project didn't change at all since then.
4 replies
CC#
Created by Metalkon on 9/10/2023 in #help
❔ Blazor WebAsm (.NET6) Breakpoints No Longer Working
19 replies
CC#
Created by Metalkon on 9/10/2023 in #help
❔ Blazor WebAsm (.NET6) Breakpoints No Longer Working
19 replies
CC#
Created by Metalkon on 9/10/2023 in #help
❔ Blazor WebAsm (.NET6) Breakpoints No Longer Working
so it should work if i'm testing without oninitialized I assume and the page is already loaded?
19 replies
CC#
Created by Metalkon on 9/10/2023 in #help
❔ Blazor WebAsm (.NET6) Breakpoints No Longer Working
It's a passwordless auth setup that only uses email. Logging in sends an email to the user, which contains a magic link for this page in the screenshot with the email/code in it's url. This page grabs the informaiton from the current url and sends that http request to confirm login and recieve jwt/refresh. As soon as the page is loaded it runs the method for the request.
19 replies
CC#
Created by Metalkon on 6/1/2023 in #help
❔ Cannot Run A New Project (Angular + ASP.NET Web API)
11 replies
CC#
Created by Metalkon on 6/1/2023 in #help
❔ Cannot Run A New Project (Angular + ASP.NET Web API)
wasnt getting to that page in the browser before, and getting a different error in console window
11 replies
CC#
Created by Metalkon on 6/1/2023 in #help
❔ Cannot Run A New Project (Angular + ASP.NET Web API)
11 replies
CC#
Created by Metalkon on 6/1/2023 in #help
❔ Cannot Run A New Project (Angular + ASP.NET Web API)
It's simply a default unchanged "ASP.NET Core with Angular" project type running on .NET 6. Nodejs was installed with default settings before making the project.
11 replies
CC#
Created by Metalkon on 6/1/2023 in #help
❔ Cannot Run A New Project (Angular + ASP.NET Web API)
11 replies