edit-task
Home
Up
Delete
Task Name:
Task Description:
CLASS Book - (.cs based on Inventory, doc based on ...)
TaskGroup ID:
Start Date:
Start Time:
Duration:
Priority:
Status:
To Do
Completed
In Process
Add Photo:
Owner ID:
Content:
use HTML
Edit Content
<h1 style="text-align: center;">[ CLASS App_Code/Book.cs ]</h1> <h2>[WHAT]</h2> <ol> <li>[ def ] class to work with Book objects</li> <li>[ args ] none </li> </ol> <h2>[WHY]</h2> <ol> <li><strong>[using]</strong></li> <ol> <li>] using System;</li> <li>] using System.Collections;</li> <li>] using System.Collections.Generic;</li> <li>] using System.Dynamic; </li> <li>] // using System.Linq;</li> <li>] // using System.Data.Linq;</li> <li>] using System.Web; </li> <li>] using WebMatrix.Data;</li> <li>] using WebMatrix.Data.StronglyTyped;</li> </ol> <li><strong>[Properties]</strong></li> <ol> <li>] int id_book</li> <li>] string name_book</li> <li>] string description_book</li> <li>] int parent_id</li> <li>] private const string qryGetBooks</li> <li>] private const string qryGetBooksInLibrary</li> <li>] private const string qryGetBooksInLibraryNamed</li> <li>] private const string qryGetBook</li> <li>] private const string qryAddBook</li> <li>] private const string qryDeleteBook</li> <li>] private const string qryUpdateBook</li> </ol> <li><strong>[Constructors]</strong></li> <ol> <li>] public Book()</li> <li>] public Book(id)</li> <li>] public Book(string name, string description, int parent_id)</li> </ol> <li><strong>[Methods]</strong></li> <ol> <li>add()</li> <li>static add(args[])</li> <li>edit() </li> <li>static edit(args[])</li> <li>delete()</li> <li>static delete(id)</li> <li>getMax()</li> <li>import()</li> </ol></ol> <h2>[WHERE]</h2> <ol> <li><strong>[ called from] </strong></li> <ol> <li>] view books -</li> <li>] view book -</li> <li>] edit book -</li> <li>] add book - </li> </ol></ol> <h2>[WHEN]</h2> <ol> <li>]</li> </ol> <h2>[EXAMPLE]</h2> <ol> <li>] </li> </ol> <h2>[HOW-TO]</h2> <ol> <li>]</li> </ol> <h2>[REFERENCE]</h2> <ol> <li>] CLASS Inventory.cs</li> </ol><hr /> <h1 style="text-align: center;">developer implementation</h1> <h2>[.process]</h2> <ol> <li> </li> </ol> <h2>[.notes]</h2> <ol> <li> </li> </ol> <h2>[.by_date]</h2> <ol> <li>[YYYY-mm-DD]</li> </ol><hr /> <h1 style="text-align: center;">status<span style="font-size: 10px;"> </span></h1> <h2>[previously]</h2> <div><ol> <li><strong>[2013-05-26] NEW task IN </strong></li> <ol> <li>] # # - CREATE new class, </li> <li>x] used Inventory.cs as template</li> <li>x] REPLACING the LibraryData methods class </li> </ol> <li><strong>[2013-05-27][] NEW task IN</strong></li> <ol> <li><strong> Validation - w3c</strong></li> <li>x] PAGE view/libraries - generated by class</li> </ol> <li><strong>[2017-04-10][00:00] NEW task</strong></li> <ol> <li>x] # # - FIX-PRB-7140 - adding explicit db.close.connection, db.close statements to methods that open connections, call db</li> </ol> <li><strong>[2017-05-03] NEW task</strong></li> <ol> <li>x] # # - </li> </ol></ol></div> <h2>[currently]</h2> <ol> <li>] </li> </ol> <h2>[next]</h2> <ol> <li>]</li> </ol>