温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:衣购网站项目(三层开发)源码
当前文件路径:ClothesShop/DALFactory/DataAccess.cs

1using System; 2
using System.Collections.Generic; 3
using System.Text; 4
using System.Configuration; 5
using System.Reflection; 6
7
namespace 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





}