コード例 #1
0
        private static void SetupTable(ISource database, dynamic item)
        {
            if (database is null)
            {
                throw new ArgumentNullException(nameof(database));
            }
            if (item is null)
            {
                throw new ArgumentNullException(nameof(item));
            }
            string TableName = item.TABLE_NAME;
            string TableType = item.TABLE_TYPE;

            if (TableType == "BASE TABLE")
            {
                database.AddTable(TableName, item.TABLE_SCHEMA);
            }
            else if (TableType == "VIEW")
            {
                database.AddView(TableName, item.TABLE_SCHEMA, string.Empty);
            }
        }