Esempio n. 1
0
        /// <summary>
        /// Creates a new <see cref="Schema"/> instance.
        /// </summary>
        public Schema(IDbConnection connection, params Type[] tables)
        {
            Connection = connection ?? throw new ArgumentNullException(nameof(connection));

            if (tables is null)
            {
                throw new ArgumentNullException(nameof(tables));
            }

            Tables = NodeUtils.Flatten(tables);
        }