它是一个有效的SQLite查询吗?

时间:2014-01-04 17:15:33

标签: sqlite exception syntax

出于某种原因,我有一个未处理的异常,它是正确的语法吗?

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);

0 个答案:

没有答案