Esempio n. 1
0
 public virtual int Fill(ModelDataSet.UserDataTable dataTable)
 {
     this.Adapter.SelectCommand = this.CommandCollection[0];
     if (this.ClearBeforeFill)
     {
         dataTable.Clear();
     }
     return(this.Adapter.Fill((DataTable)dataTable));
 }
Esempio n. 2
0
 public List <ModelDataSet.UserRow> GetUsers()
 {
     try
     {
         ModelDataSet.UserDataTable userDataTable = new ModelDataSet.UserDataTable();
         this._userTableAdapter.Fill(userDataTable);
         return(userDataTable.ToList <ModelDataSet.UserRow>());
     }
     catch (Exception ex)
     {
         throw new WCFGeneratorException(ex);
     }
 }