BookType.cs
上传用户:gooyliu
上传日期:2018-09-29
资源大小:5816k
文件大小:1k
- using System;
- using System.Collections.Generic;
- using System.Text;
- using System.Configuration;
- using System.Data;
- using System.Data.SqlClient;
- namespace DataAccessLayer
- {
- public class dalBookType
- {
- public DataSet GetDS()
- {
-
- string connStr= ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;
- SqlConnection conn = new SqlConnection(connStr);
- conn.Open();
-
- SqlDataAdapter ada = new SqlDataAdapter("Proc_SelectBookType", conn);
- DataSet ds = new DataSet();
- ada.Fill(ds);
- return ds;
- }
- }
- }