日期:2014-05-16 浏览次数:20894 次
/// <summary> /// 注册 /// </summary> /// <param name="user"></param> /// <returns></returns> public static int AddLoginUser(User user) { string sql = "INSERT INTO User ([Name],[Password],[PurviewID]) VALUES (@Name ,@password ,@purviewId)"; OleDbParameter[] paras ={ new OleDbParameter("@Name",user.Name),new OleDbParameter("@password",user.Password), new OleDbParameter("@purviewId",user.Purview.Id)}; return DBHelper.ExecuteNonQuery(sql,paras); }