您目前尚未登陆,请选择【登陆】或【注册
首页->其他源码->人才网初学者工具包源码>>App-Code/BOL/Country.cs>>代码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:人才网初学者工具包源码


当前文件路径:JobSiteStarterKit/App_Code/BOL/Country.cs 文件类型
普通视图
		            
1Using directives 11//该源码下载自www.51aspx.com(51aspx.com) 12 13namespace JobSiteStarterKit.BOL 14{ 15 public class Country 16 { 17 public Country() 18 { 19 } 20 21 private string strCountryName; 22 private int intCountryID; 23 24 public string CountryName 25 { 26 get 27 { 28 return strCountryName; 29 } 30 set 31 { 32 strCountryName = value; 33 } 34 } 35 36 public int CountryID 37 { 38 get 39 { 40 return intCountryID; 41 } 42 set 43 { 44 intCountryID = value; 45 } 46 } 47 48 49 public int InsertCountry(Country c) 50 { 51 DBAccess db = new DBAccess(); 52 SqlParameter p = new SqlParameter("@iCountryID", 0); 53 p.Direction = ParameterDirection.Output; 54 db.AddParameter("@sCountryName", c.CountryName); 55 db.AddParameter(p); 56 return db.ExecuteNonQuery("JobsDb_Countries_Insert"); 57 58 } 59 60 public int UpdateCountry(Country c) 61 { 62 DBAccess db = new DBAccess(); 63 db.AddParameter("@iCountryID", c.CountryID); 64 db.AddParameter("@sCountryName", c.CountryName); 65 return db.ExecuteNonQuery("JobsDb_Countries_Update"); 66 } 67 68 public DataSet SelectCountries() 69 { 70 DBAccess db = new DBAccess(); 71 return db.ExecuteDataSet("JobsDb_Countries_SelectAll"); 72 } 73 74 75 76 public static DataSet GetCountries() 77 { 78 DBAccess db = new DBAccess(); 79 return db.ExecuteDataSet("JobsDb_Countries_SelectAll"); 80 } 81 82 83 public static string GetCountryName(int id) 84 { 85 DBAccess db = new DBAccess(); 86 db.AddParameter("@iCountryID", id); 87 return db.ExecuteScalar("JobsDb_Countries_GetCountryName").ToString(); 88 } 89 90 } 91} 92
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:人才网初学者工具包源码

- HuGo版文章发布系统(三层MVC..

- 51aspx员工绩效考核系统

- ASP.NET 2.53 缩略图水印组件..

- 品杰电子商务购物平台系统源码

- 海南岛旅游网全站源码

- 明日网上商城购物系统源码

- X3BLOG多用户博客 0.7.5.2源代码

- 沈阳某大学教学资源网源码

51Aspx.com 版权所有 CopyRight © 2000-2008. 京ICP备06046876号