freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

基于aspnet新聞發(fā)布系統(tǒng)(編輯修改稿)

2024-12-18 15:37 本頁面
 

【文章內(nèi)容簡介】 。 (1)新聞類別表 BigClass 新聞類別表 BigClass 用來保存新聞類別數(shù)據(jù),結(jié)構(gòu)間表 所示: 表 新聞類別表 BigClass 的結(jié)構(gòu) 表 (2)新聞基本信息表 news 基本新聞表 news 用來保存網(wǎng)上新聞的基本信息,結(jié)構(gòu)見表 所示: 華東交通大學(xué)軟件學(xué)院課程設(shè)計 9 表 新聞基本信息 (3)評論分析表 answer 評論分析表 answer 用來保存網(wǎng)友對新聞的評價信息,結(jié)構(gòu)見表 所示: 表 評論分析表 (4)用戶信息表 admin 用戶信息表 admin 用來存放用戶的基本信息,結(jié)果見表 4 華東交通大學(xué)軟件學(xué)院課程設(shè)計 10 表 4 用戶信息 華東交通大學(xué)軟件學(xué)院課程設(shè)計 11 四 、 數(shù)據(jù)訪問類的實現(xiàn)、母版及用戶控件 數(shù)據(jù)訪問類的實現(xiàn) 問訪問數(shù)據(jù)庫提供了豐富的類庫,如 ,這些類庫在系統(tǒng)開發(fā)中被頻繁的使用。本系統(tǒng)選用的是 SQL Server 2020 數(shù)據(jù)庫,所有的數(shù)據(jù)都保存在數(shù)據(jù)庫表中。對 SQL 數(shù)據(jù)庫的訪問可以使用一個封裝的 SQL 數(shù)據(jù)庫訪問類,這樣可以提 高程序的可讀性,提高效率。 下面是定義一個名字空間通用類庫 DataBase,在其中封裝了對 SQL 數(shù)據(jù)庫的訪問方法。 using system。 using 。 using 。 using 。 using 。 public class DBbase { Public DBbase() { //TODO:在此處添加構(gòu)造函數(shù)邏輯 } region 定義連接字符串 strCon Public static string strCon=” Data Source=(local)。database= News2020。Integrated Security=true?!?。 //public static string strCon= [“ conStr” ].To華東交通大學(xué)軟件學(xué)院課程設(shè)計 12 String()。 endregion region SqlConnection con=new SqlConnection(strCon)。 endregion region Public void CheekConnection() { If(==) { ()。 } } endregion region Public DataSet ReturnDataSet(string strSQL) { CheckConnection()。 try { SqlDataAdapter sda=new SqlDataAdapter(strSQL,con)。 DataSet ds=new DataSet()。 (ds)。 Return ds。 } Catch(Exception ex) 華東交通大學(xué)軟件學(xué)院課程設(shè)計 13 { throw new Exception()。 } finally { ()。 } } endregion region Public DataRow GetDataRow(string strSQL) { CheckConnection()。 try { SqlDataAdapter sda=new SqlDataAdapter(strSql,con)。 DataSet ds=new DataSet()。 (ds)。 Return [0].Rows[0]。 } Catch(Exception ex) { Throw new Exception()。 } finally { 華東交通大學(xué)軟件學(xué)院課程設(shè)計 14 ()。 } } endregion region public bool ExecuteNonQuery(bool IsPro,string strSQL) { CheckConnection()。 try { SqlCommand =new SqlCommand(strSQL,con)。 If(IsPro) { 。 } else { =。 } =strSQL。 ()。 ()。 return true。 } catch
點擊復(fù)制文檔內(nèi)容
法律信息相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1