Esempio n. 1
0
        /// <summary>
        /// Start mapping the columns to merge using the strongly typed fluent <paramref name="builder" />.
        /// </summary>
        /// <typeparam name="TEntity">The type of the entity.</typeparam>
        /// <param name="builder">The fluent data mapping builder.</param>
        /// <returns>
        /// A fluent <see langword="interface" /> to a <see cref="DataMerge " /> operation.
        /// </returns>
        public IDataMerge Map <TEntity>(Action <DataMergeMapping <TEntity> > builder)
        {
            var dataMapping = new DataMergeMapping <TEntity>(_mergeDefinition);

            builder(dataMapping);

            return(this);
        }
Esempio n. 2
0
        /// <summary>
        /// Start mapping the columns to merge using the fluent <paramref name="builder" />.
        /// </summary>
        /// <param name="builder">The fluent data mapping builder.</param>
        /// <returns>
        /// A fluent <see langword="interface" /> to a <see cref="DataMerge " /> operation.
        /// </returns>
        public IDataMerge Map(Action <DataMergeMapping> builder)
        {
            var dataMapping = new DataMergeMapping(_mergeDefinition);

            builder(dataMapping);

            return(this);
        }