public IDataSourceViewSchema[] GetViews() { DataTableCollection tables = this._dataSet.Tables; DataSetViewSchema[] schemaArray = new DataSetViewSchema[tables.Count]; for (int i = 0; i < tables.Count; i++) { schemaArray[i] = new DataSetViewSchema(tables[i]); } return schemaArray; }
public IDataSourceViewSchema[] GetViews() { DataTableCollection tables = this._dataSet.Tables; DataSetViewSchema[] schemaArray = new DataSetViewSchema[tables.Count]; for (int i = 0; i < tables.Count; i++) { schemaArray[i] = new DataSetViewSchema(tables[i]); } return(schemaArray); }
private static IDataSourceViewSchema[] GetDataTableSchema(Type t) { try { DataTable dataTable = Activator.CreateInstance(t) as DataTable; DataSetViewSchema schema = new DataSetViewSchema(dataTable); return(new IDataSourceViewSchema[] { schema }); } catch { return(null); } }
public IDataSourceViewSchema[] GetViews() { DataSetViewSchema[] schemaArray = new DataSetViewSchema[this._tables.Length]; for (int i = 0; i < this._tables.Length; i++) { schemaArray[i] = new DataSetViewSchema(this._tables[i]); } return schemaArray; }