Simple.Metadata.SqlServerCeSchemaProvider.GetTables C# (CSharp) Method

GetTables() public method

public GetTables ( IList includedTables, IList excludedTables ) : IEnumerable
includedTables IList
excludedTables IList
return IEnumerable
        public override IEnumerable<DbTable> GetTables(IList<string> includedTables, IList<string> excludedTables)
        {
            DataTable tbl = GetDTSchemaTables();
            var cmd = CreateCommand(sqlTables);
            using (var results = cmd.ExecuteReader())
            {
                while (results.Read())
                {
                    DataRow valuesRow = tbl.NewRow();
                    if (results[0] != DBNull.Value)
                        valuesRow[0] = results.GetString(0);
                    if (results[1] != DBNull.Value)
                        valuesRow[1] = results.GetString(1);
                    if (results[2] != DBNull.Value)
                        valuesRow[2] = results.GetString(2);
                    if (results[3] != DBNull.Value)
                        valuesRow[3] = results.GetString(3);
                    if (results[5] != DBNull.Value)
                        valuesRow[5] = results.GetString(5);
                    if (results[7] != DBNull.Value)
                        valuesRow[7] = results.GetDateTime(7);
                    if (results[8] != DBNull.Value)
                        valuesRow[8] = results.GetDateTime(8);
                    tbl.Rows.Add(valuesRow);
                }
            }

            return ConstructTables(tbl.Rows.OfType<DataRow>());
        }