예제 #1
0
        public int Points_Add(PointsModel pointsModel)
        {
            SqlParameter[] parameters = new SqlParameter[] {
                    new SqlParameter("@id", SqlDbType.Int, 4),
                    new SqlParameter("@PointId", SqlDbType.VarChar, 20),
                    new SqlParameter("@x", SqlDbType.Float, 8),
                    new SqlParameter("@y", SqlDbType.Float, 8)};

            parameters[0].Value = pointsModel.id;
            parameters[1].Value = pointsModel.PointId;
            parameters[2].Value = pointsModel.x;
            parameters[3].Value = pointsModel.y;

            try
            {
                int iReturn;
                int i = DbHelperSQL.RunProcedure("KJ128_Points_Add", parameters, out iReturn);
                return iReturn;
            }
            catch
            {
                return -1;
            }
        }
예제 #2
0
 public int Points_Add(PointsModel pointsModel)
 {
     return dal.Points_Add(pointsModel);
 }