Shogunex
Shogunex
CC#
Created by Shogunex on 4/25/2024 in #help
✅ Getting a single value in sql db
thank you so much again!
40 replies
CC#
Created by Shogunex on 4/25/2024 in #help
✅ Getting a single value in sql db
I'll now be able to continue with adding in the db and searching them
40 replies
CC#
Created by Shogunex on 4/25/2024 in #help
✅ Getting a single value in sql db
Thank you so much! it works
40 replies
CC#
Created by Shogunex on 4/25/2024 in #help
✅ Getting a single value in sql db
Ok, I'll test it out
40 replies
CC#
Created by Shogunex on 4/25/2024 in #help
✅ Getting a single value in sql db
No description
40 replies
CC#
Created by Shogunex on 4/25/2024 in #help
✅ Getting a single value in sql db
i was thinking of changing any, but idk what to change it to get the role of the current username and password
40 replies
CC#
Created by Shogunex on 4/25/2024 in #help
✅ Getting a single value in sql db
No description
40 replies
CC#
Created by Shogunex on 4/25/2024 in #help
✅ Getting a single value in sql db
i haven't gotten the chance to play around yet since our professor wants it working
40 replies
CC#
Created by Shogunex on 4/25/2024 in #help
✅ Getting a single value in sql db
it was part of the tutorial that i saw
40 replies
CC#
Created by Shogunex on 4/25/2024 in #help
✅ Getting a single value in sql db
i've sent all the codes that was used for the login
40 replies
CC#
Created by Shogunex on 4/25/2024 in #help
✅ Getting a single value in sql db
that's the login code
40 replies
CC#
Created by Shogunex on 4/25/2024 in #help
✅ Getting a single value in sql db
40 replies
CC#
Created by Shogunex on 4/25/2024 in #help
✅ Getting a single value in sql db
ah sorry, it's because of the code of my groupmate made, since he was testing things out without using any database
40 replies
CC#
Created by Shogunex on 4/25/2024 in #help
✅ Getting a single value in sql db
No description
40 replies
CC#
Created by Shogunex on 4/25/2024 in #help
✅ Getting a single value in sql db
and this is for how my db was created and checked if there's a db
public class UserDataContext: DbContext
{

protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
optionsBuilder.UseSqlite("Data Source = DataFile.db");
}

public DbSet<User> Users { get; set; }

}
public class UserDataContext: DbContext
{

protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
optionsBuilder.UseSqlite("Data Source = DataFile.db");
}

public DbSet<User> Users { get; set; }

}
40 replies
CC#
Created by Shogunex on 4/25/2024 in #help
✅ Getting a single value in sql db
public class User
{

[Key]

public int Id { get; set; }
public string Name { get; set; }
public string Password { get; set; }
public string Role { get; set; }




}
public class User
{

[Key]

public int Id { get; set; }
public string Name { get; set; }
public string Password { get; set; }
public string Role { get; set; }




}
40 replies
CC#
Created by Shogunex on 4/25/2024 in #help
✅ Getting a single value in sql db
it's a string
40 replies