摘要:
public static int AddStudent(Student stu){int num = 0;//关键是存储过程string sql = "addNewStudent";SqlParameter p=new SqlParameter();p.ParameterName="@newId";p.SqlDbType=SqlDbType.Int;p.Direction=ParameterDirection.Output;bool sex=stu.StuSex=="男"?true:false;SqlParameter[] para 阅读全文
posted @ 2013-05-09 10:21
风雪七月花溅墨
阅读(327)
评论(0)
推荐(0)
摘要:
数据层using System;using System.Collections.Generic;using System.Linq;using System.Text;using ThreeTies.Model;using ThreeTies.DBUtility;using System.Data.SqlClient;using System.Data;namespace ThreeTies.SqlServerDAL{ //用户的基础服务类 public class UserService { //添加用户 public static int AddUser(User u) { try { 阅读全文
posted @ 2013-05-09 10:13
风雪七月花溅墨
阅读(176)
评论(0)
推荐(0)

浙公网安备 33010602011771号