温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:Asp.net2.0电子商务网源码
当前文件路径:AspNetDianZiShangWu/BLL/ImageBook.cs

1using System; 2
using System.Collections.Generic; 3
using System.Text; 4
using System.ComponentModel; 5
using Jiaen.Components; 6
using Jiaen.Components.IDAL; 7
using Jiaen.SQLServerDAL; 8
9
namespace Jiaen.BLL 10
{ 11
[DataObjectAttribute] 12
public class ImageBook 13
{ 14
private static readonly IImageBook imageBooks = DataAccess.CreateImageBook(); 15
16
/// <summary> 17
/// 获取图片信息 18
/// </summary> 19
/// <param name="userID"></param> 20
/// <returns></returns> 21
public static IList<ImageBookInfo> GetImageBook(ImageBookType type) 22
{ 23
return imageBooks.GetImageBook(type); 24
} 25
26
27
/// <summary> 28
/// 获取特定图片信息 29
/// </summary> 30
/// <param name="gbID"></param> 31
/// <returns></returns> 32
public static ImageBookInfo GetImageBookByID(int imageID) 33
{ 34
return imageBooks.GetImageBookByID(imageID); 35
} 36
37
/// <summary> 38
/// 添加图片信息 39
/// </summary> 40
/// <param name="g"></param> 41
public static void InsertImageBook(ImageBookInfo image) 42
{ 43
imageBooks.InsertImageBook(image); 44
} 45
46
/// <summary> 47
/// 更新图片信息 48
/// </summary> 49
/// <param name="g"></param> 50
public static int UpdateImageBook(ImageBookInfo image) 51
{ 52
return imageBooks.UpdateImageBook(image); 53
} 54
55
/// <summary> 56
/// 更新图片信息 57
/// </summary> 58
/// <param name="g"></param> 59
public static int UpdateImageBook(UpdateImageType type, int order, int imageID) 60
{ 61
return imageBooks.UpdateImageBook(type, order, imageID); 62
} 63
64
/// <summary> 65
/// 删除图片信息 66
/// </summary> 67
/// <param name="g"></param> 68
/// <returns></returns> 69
public static int DeleteImageBookByID(int imageID) 70
{ 71
return imageBooks.DeleteImageBookByID(imageID); 72
} 73
} 74
} 75




[DataObjectAttribute]

}