SUBD_LAB/SUBD_LABA/Database/Abstracts.cs

53 lines
1.9 KiB
C#
Raw Permalink Normal View History

2024-05-14 17:48:22 +04:00
using Database;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Commentbase
{
public abstract class Abstracts
{
public abstract void CreateAlbum(Album album);
public abstract void UpdateAlbum(Album album);
public abstract void DeleteAlbum(int id);
public abstract Album GetAlbum(int id);
public abstract Album GetAlbum(string title);
public abstract List<Album> GetAlbums();
public abstract void DeleteAllAlbums();
public abstract void CreateLocation(Location location);
public abstract void UpdateLocation(Location location);
public abstract void DeleteLocation(int id);
public abstract Location GetLocation(int id);
public abstract Location GetLocation(string name);
public abstract List<Location> GetLocations();
public abstract void DeleteAllLocations();
public abstract void CreatePhoto(Photo photo);
public abstract void UpdatePhoto(Photo photo);
public abstract void DeletePhoto(int id);
public abstract Photo GetPhoto(int id);
public abstract Photo GetPhoto(int AlbumId, int LocationId, int AuthorId);
public abstract List<Photo> GetPhotos();
public abstract void DeleteAllPhotos();
public abstract void CreateAuthor(Author author);
public abstract void UpdateAuthor(Author author);
public abstract void DeleteAuthor(int id);
public abstract Author GetAuthor(int id);
public abstract Author GetAuthor(string name);
public abstract List<Author> GetAuthors();
public abstract void DeleteAllAuthors();
public abstract void CreateComment(Comment comment);
public abstract void UpdateComment(Comment comment);
public abstract void DeleteComment(int id);
public abstract Comment GetComment(int id);
public abstract Comment GetCommentPhoto(int PhotoId);
public abstract List<Comment> GetComments();
public abstract void DeleteAllComments();
}
}