Esempio n. 1
0
        /// <summary>
        /// Get the SQL table configuration.
        /// </summary>
        /// <param name="graphType">The graph type.</param>
        /// <returns>The <see cref="SqlTableConfig"/> if any, otherwise <c>null</c></returns>
        /// <exception cref="ArgumentNullException">If <paramref name="graphType"/> is <c>null</c>.</exception>
        public static SqlTableConfig?GetSqlTableConfig(this IGraphType graphType)
        {
            if (graphType == null)
            {
                throw new ArgumentNullException(nameof(graphType));
            }

            return(graphType.GetMetadata <SqlTableConfig>(nameof(SqlTableConfig)));
        }