public virtual int Fill(ModelDataSet.WCFWorkspacesDataTable dataTable) { this.Adapter.SelectCommand = this.CommandCollection[0]; if (this.ClearBeforeFill) { dataTable.Clear(); } return(this.Adapter.Fill((DataTable)dataTable)); }
public List <ModelDataSet.WCFWorkspacesRow> GetWorkspaces() { try { ModelDataSet.WCFWorkspacesDataTable workspacesDataTable = new ModelDataSet.WCFWorkspacesDataTable(); this._WCFWorkspacesTableAdapter.Fill(workspacesDataTable); return(workspacesDataTable.OrderBy <ModelDataSet.WCFWorkspacesRow, int>((Func <ModelDataSet.WCFWorkspacesRow, int>)(w => w.Sequence)).ToList <ModelDataSet.WCFWorkspacesRow>()); } catch (Exception ex) { throw new WCFGeneratorException(ex); } }