Exemple #1
0
 /// <summary>
 /// Constructeur
 /// </summary>
 /// <param name="GUID"> GUID</param>
 /// <param name="title">Titre</param>
 /// <param name="releasedate">Date de sortie</param>
 /// <param name="writer">Auteur</param>
 /// <param name="publisher">Editeur</param>
 /// <param name="price">Prix</param>
 /// <param name="type">Genre</param>
 /// <param name="description">Description</param>
 public Book(string GUID, string title, string releasedate, Author writer, Editor publisher,
                 double price, Kind type, string description)
 {
     this._GUID = GUID;
     this._title = title;
     this._releasedate = releasedate;
     this._writer = writer;
     this._publisher = publisher;
     this._price = price;
     this._type = type;
     this._description = description;
 }
Exemple #2
0
 /// <summary>
 /// Permet de modifier un livre dans la base de donnée
 /// </summary>
 /// <param name="GUID">GUID</param>
 /// <param name="titre">Titre</param>
 /// <param name="prix">Prix</param>
 /// <param name="aut">Author</param>
 /// <param name="ed">Editeur</param>
 /// <param name="genre">Genre</param>
 public void UpdateBookDB(string GUID, string titre, double prix, Author aut, Editor ed, Kind genre)
 {
     dataBase.UpdateBook(GUID, titre, prix, aut.GUID, ed.GUID, genre.GUID);
 }
Exemple #3
0
 /// <summary>
 /// Permet de transformer une listes de type "Base de donnée" en 
 /// types utilisables dans la couche métier
 /// </summary>
 /// <param name="db"> Liste BDD de types</param>
 public void KindAdaptor(List<KindDB> db)
 {
     Kind type;
     foreach (KindDB kinddb in db)
     {
         type = new Kind(kinddb.Guid, kinddb.Name);
         _types.Add(type);
     }
 }