示例#1
0
 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);
 }
示例#2
0
        /*
         * 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);
        }