出于某种原因,我有一个未处理的异常,它是正确的语法吗?
command.CommandText = "INSERT INTO tblUsers (Username, UserEmail, FirstName, LastName) VALUES (@Username, @UserEmail, @FirstName, @LastName)";
command.Parameters.AddWithValue("@UserEmail", user.Email);
command.Parameters.AddWithValue("@Username", user.UserName);
command.Parameters.AddWithValue("@FirstName", user.FName);
command.Parameters.AddWithValue("@LastName", user.LName);