C# Class PhotoGallery.Repositories.PhotoGalleryRepository

Datei anzeigen Open project: csell5/Demos Class Usage Examples

Public Methods

Method Description
CreateGallery ( string galleryName ) : int
GetCommentsByPhoto ( int id ) : IList
GetCommentsByUser ( ) : IList
GetGallery ( int galleryId ) : dynamic
GetGalleryCount ( string galleryName ) : int
GetGalleryList ( ) : IList
GetPhoto ( int photoId ) : dynamic
GetPhotosForGallery ( int galleryId ) : IList
GetTopPhotosForGallery ( int galleryId ) : IList
InsertComment ( int id, string newComment, int userId ) : void
InsertImage ( int galleryId, int userId, string fileTitle, string fileExtension, string imageFormat, int length, byte image ) : int
InsertPhotoTag ( int id, string tag ) : void
PhotoGalleryRepository ( ) : System
RemovePhoto ( int photoId ) : void

Method Details

CreateGallery() public method

public CreateGallery ( string galleryName ) : int
galleryName string
return int

GetCommentsByPhoto() public method

public GetCommentsByPhoto ( int id ) : IList
id int
return IList

GetCommentsByUser() public method

public GetCommentsByUser ( ) : IList
return IList

GetGallery() public method

public GetGallery ( int galleryId ) : dynamic
galleryId int
return dynamic

GetGalleryCount() public method

public GetGalleryCount ( string galleryName ) : int
galleryName string
return int

GetGalleryList() public method

public GetGalleryList ( ) : IList
return IList

GetPhoto() public method

public GetPhoto ( int photoId ) : dynamic
photoId int
return dynamic

GetPhotosForGallery() public method

public GetPhotosForGallery ( int galleryId ) : IList
galleryId int
return IList

GetTopPhotosForGallery() public method

public GetTopPhotosForGallery ( int galleryId ) : IList
galleryId int
return IList

InsertComment() public method

public InsertComment ( int id, string newComment, int userId ) : void
id int
newComment string
userId int
return void

InsertImage() public method

public InsertImage ( int galleryId, int userId, string fileTitle, string fileExtension, string imageFormat, int length, byte image ) : int
galleryId int
userId int
fileTitle string
fileExtension string
imageFormat string
length int
image byte
return int

InsertPhotoTag() public method

public InsertPhotoTag ( int id, string tag ) : void
id int
tag string
return void

PhotoGalleryRepository() public method

public PhotoGalleryRepository ( ) : System
return System

RemovePhoto() public method

public RemovePhoto ( int photoId ) : void
photoId int
return void