C# 클래스 AspNet.StarterKits.Classifieds.BusinessLogicLayer.PhotosDB

파일 보기 프로젝트 열기: mono/gert

공개 메소드들

메소드 설명
GetFilePath ( int photoId, bool forUrl, PhotoSize size ) : string
GetPhotoBytesById ( int photoId, PhotoSize size ) : byte[]
GetPhotosByAdId ( int adId ) : AdsDataComponent.PhotosDataTable
InsertPhoto ( int adId, byte bytesFull, byte bytesMedium, byte bytesSmall, bool useAsPreview ) : int
RemovePhotoById ( int id ) : bool
RemovePhotosByAdId ( int adId ) : void
RemovePhotosOfDeletedAds ( ) : void
ResizeImageFile ( byte imageFile, PhotoSize size ) : byte[]
SetAdPreviewPhoto ( int adId, int photoId ) : void

비공개 메소드들

메소드 설명
DeleteFile ( string filename ) : void
DeleteLocalPhotoFiles ( int photoId ) : bool
PhotosDB ( ) : System
RemovePhotoFilesInTable ( AdsDataComponent photosToDelete ) : void
WriteToFile ( string filename, byte bytes ) : void

메소드 상세

GetFilePath() 공개 정적인 메소드

public static GetFilePath ( int photoId, bool forUrl, PhotoSize size ) : string
photoId int
forUrl bool
size PhotoSize
리턴 string

GetPhotoBytesById() 공개 정적인 메소드

public static GetPhotoBytesById ( int photoId, PhotoSize size ) : byte[]
photoId int
size PhotoSize
리턴 byte[]

GetPhotosByAdId() 공개 정적인 메소드

public static GetPhotosByAdId ( int adId ) : AdsDataComponent.PhotosDataTable
adId int
리턴 AdsDataComponent.PhotosDataTable

InsertPhoto() 공개 정적인 메소드

public static InsertPhoto ( int adId, byte bytesFull, byte bytesMedium, byte bytesSmall, bool useAsPreview ) : int
adId int
bytesFull byte
bytesMedium byte
bytesSmall byte
useAsPreview bool
리턴 int

RemovePhotoById() 공개 정적인 메소드

public static RemovePhotoById ( int id ) : bool
id int
리턴 bool

RemovePhotosByAdId() 공개 정적인 메소드

public static RemovePhotosByAdId ( int adId ) : void
adId int
리턴 void

RemovePhotosOfDeletedAds() 공개 정적인 메소드

public static RemovePhotosOfDeletedAds ( ) : void
리턴 void

ResizeImageFile() 공개 정적인 메소드

public static ResizeImageFile ( byte imageFile, PhotoSize size ) : byte[]
imageFile byte
size PhotoSize
리턴 byte[]

SetAdPreviewPhoto() 공개 정적인 메소드

public static SetAdPreviewPhoto ( int adId, int photoId ) : void
adId int
photoId int
리턴 void