Пример #1
0
 public DataTable LoadAll()
 {
     PhotoDAC odac = new PhotoDAC(this);
     DataTable table = odac.SelectAll();
     base.MaxPageIndex = odac.MaxPageIndex;
     return table;
 }
Пример #2
0
 // Methods
 public bool AddOne()
 {
     PhotoDAC odac = new PhotoDAC(this);
     if (odac.InsertOne() >= Utility.ONE_ROW_AFFECTED)
     {
         base.PhotoID = odac.PhotoID;
         return true;
     }
     return false;
 }