您目前尚未登陆,请选择【登陆】或【注册
首页->电子商务->衣购网站项目(三层开发)源码>>DALFactory/DataAccess.cs>>代码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:衣购网站项目(三层开发)源码


当前文件路径:ClothesShop/DALFactory/DataAccess.cs 文件类型
普通视图
		            
1using System; 2using System.Collections.Generic; 3using System.Text; 4using System.Configuration; 5using System.Reflection; 6 7namespace ClothesShop.DALFactory 8{ 9 public sealed class DataAccess 10 { 11 //private static readonly string path = ConfigurationManager.AppSettings["OleDbDAL"]; 12 13 /// <summary> 14 /// 返回OleDbDAl中的userinfo对象 15 /// </summary> 16 /// <returns></returns> 17 public static ClothesShop.IDAL.Iuserinfo Createuserinfo() 18 { 19 //string className = path + ".userinfo"; 20 //return (ClothesShop.IDAL.Iuserinfo)Assembly.Load(path).CreateInstance(className); 21 22 ClothesShop.OleDbDAL.userinfo user = new ClothesShop.OleDbDAL.userinfo(); 23 return user; 24 } 25 26 public static ClothesShop.IDAL.Itype_1 Createtype_1() 27 { 28 ClothesShop.OleDbDAL.type_1 t_1 = new ClothesShop.OleDbDAL.type_1(); 29 return t_1; 30 } 31 32 public static ClothesShop.IDAL.Itype_2 Createtype_2() 33 { 34 ClothesShop.OleDbDAL.type_2 t_2 = new ClothesShop.OleDbDAL.type_2(); 35 return t_2; 36 } 37 38 public static ClothesShop.IDAL.Iproduct Createproduct() 39 { 40 ClothesShop.OleDbDAL.product pro = new ClothesShop.OleDbDAL.product(); 41 return pro; 42 } 43 44 public static ClothesShop.IDAL.Imessage Createmessage() 45 { 46 ClothesShop.OleDbDAL.message msg = new ClothesShop.OleDbDAL.message(); 47 return msg; 48 } 49 50 public static ClothesShop.IDAL.Irelay Createrelay() 51 { 52 ClothesShop.OleDbDAL.relay rel = new ClothesShop.OleDbDAL.relay(); 53 return rel; 54 } 55 56 public static ClothesShop.IDAL.Icart Createcart() 57 { 58 ClothesShop.OleDbDAL.cart ocart = new ClothesShop.OleDbDAL.cart(); 59 return ocart; 60 } 61 62 public static ClothesShop.IDAL.Iorder Createorder() 63 { 64 ClothesShop.OleDbDAL.order ord = new ClothesShop.OleDbDAL.order(); 65 return ord; 66 } 67 } 68} 69
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:衣购网站项目(三层开发)源码

- 精品课管理系统源码

- 精美的WEB在线文件管理(狐狸..

- 小型采石场收支管理系统源码

- X2Blog4.0及X2WebControls源码

- ASP.Net网络资源管理器 v2.0

- 北京连锁超市会员积分销售系..

- 三层用户管理系统

- ASPNET2BBS示例论坛源码

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