I wrote an application in C# using Entity Framework 5.0, now I have username and password in database, I want to login with that data to my application but I can't.
This is where I'm stuck:
private void login_Click(object sender, EventArgs e)
{
Database1Entities connect = new Database1Entities();
Users users = new Users();
if (users.username == usernameTextBox.Text && users.password == passwordTextBox.Text)
{
Form3 f3 = new Form3();
f3.Show();
this.Hide();
}
}