示例#1
0
        /// <summary>
        /// Creates a new instance of the <see cref="SqlBatchConfigBuilder"/>.
        /// </summary>
        /// <param name="thisKey">The column to match on the current table.</param>
        /// <param name="parentKey">The column to match on the other table.</param>
        /// <exception cref="ArgumentNullException">If <paramref name="thisKey"/> or <paramref name="parentKey"/> is null.</exception>
        /// <returns>The <see cref="SqlBatchConfigBuilder"/>.</returns>
        public static SqlBatchConfigBuilder Create(string thisKey, string parentKey)
        {
            if (thisKey == null)
            {
                throw new ArgumentNullException(nameof(thisKey));
            }
            if (parentKey == null)
            {
                throw new ArgumentNullException(nameof(parentKey));
            }

            var config = new SqlBatchConfig(thisKey, parentKey);

            return(new SqlBatchConfigBuilder(config));
        }
示例#2
0
 private SqlBatchConfigBuilder(SqlBatchConfig sqlBatchConfig)
 {
     SqlBatchConfig = sqlBatchConfig;
 }