public class UserDataContext: DbContext{ protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { optionsBuilder.UseSqlite("Data Source = DataFile.db"); } public DbSet<User> Users { 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; } }