public void Insert() { Parameter[] parameter = { new Parameter("@UserName", SqlDbType.NVarChar, -1, _UserName), new Parameter("@Email", SqlDbType.NVarChar, -1, _Email) }; objBusinessBase.ExecuteProcedure("usp_Member_Insert", parameter); }
/* * communicate w/h SQL */ public void Insert() { Parameter[] parameter = { new Parameter("@UserName", SqlDbType.NVarChar, -1, _UserName), new Parameter("@Email", SqlDbType.NVarChar, -1, _Email), new Parameter("@PhoneN", SqlDbType.NVarChar, -1, _PhoneN), new Parameter("@Age", SqlDbType.NVarChar, -1, _Age), new Parameter("@Face", SqlDbType.NVarChar, -1, _pic), new Parameter("@Sex", SqlDbType.NVarChar, -1, _Sex), new Parameter("@Position", SqlDbType.NVarChar, -1, _Position), new Parameter("@picIndex", SqlDbType.Int, -1, _Position) }; objBusinessBase.ExecuteProcedure("usp_Member_Insert", parameter); }