/// <summary> /// Configure the SQL table for the graph type. /// </summary> /// <param name="graphType">The graph type.</param> /// <param name="table">The table expression.</param> /// <param name="uniqueKey">The unique key column.</param> /// <returns>The <see cref="SqlTableConfigBuilder"/>.</returns> /// <exception cref="ArgumentNullException">If <paramref name="graphType"/>, <paramref name="table"/> or <paramref name="uniqueKey"/> is <c>null</c>.</exception> public static SqlTableConfigBuilder SqlTable(this IGraphType graphType, TableExpressionDelegate table, string[] uniqueKey) { if (graphType == null) { throw new ArgumentNullException(nameof(graphType)); } if (table == null) { throw new ArgumentNullException(nameof(table)); } if (uniqueKey == null) { throw new ArgumentNullException(nameof(uniqueKey)); } var builder = SqlTableConfigBuilder.Create(table, uniqueKey); graphType.WithMetadata(nameof(SqlTableConfig), builder.SqlTableConfig); return(builder); }
/// <inheritdoc/> public override void Modify(IGraphType graphType) => graphType.WithMetadata(Key, Value);