日期:2014-05-17 浏览次数:21024 次
string cmdString = @"INSERT INTO T_Logins VALUES(@UserName,@PassWord,@Email)";
OleDbParameter[] oleParameters = new OleDbParameter[]
{
//new OleDbParameter("@ID",1),
new OleDbParameter("@UserName",loginsModel.UserName),
new OleDbParameter("@PassWord",loginsModel.PassWord),
new OleDbParameter("@Email",loginsModel.Email)
};
string cmdString = @"INSERT INTO T_Logins VALUES(@ID,@UserName,@PassWord,@Email)";
OleDbParameter[] oleParameters = new OleDbParameter[]
{
new OleDbParameter("@ID",OleDbType.BigInt),
new OleDbParameter("@UserName",loginsModel.UserName),
new OleDbParameter("@PassWord",loginsModel.PassWord),
new OleDbParameter("@Email",loginsModel.Email)
};
string cmdString = @"INSERT INTO T_Logins VALUES(@ID,@UserName,@PassWord,@Email)";
OleDbParameter[] oleParameters = new OleDbParameter[]
{
new OleDbParameter("@ID",1),
new OleDbParameter("@UserName",loginsModel.UserName),
new OleDbParameter("@PassWord",loginsModel.PassWord),
new OleDbParameter("@Email",loginsModel.Email)
};
return (int)AccessHelper.ExecuteNonQuery(cmdString, oleParameters);