Пример #1
0
        public override void Value <T>(PropertyInfo property)
        {
            var specification = new CopyInputValuePropertyTranslateSpecification <TResult, T, TInput, TSchema>(property);

            specification.Apply(_builder);
        }
Пример #2
0
        /// <summary>
        /// Copy the value from the input value to the result value, allowing a specific input property to be specified. This overrides the default
        /// behavior of mapping the input property of the same name to the result.
        /// </summary>
        /// <param name="propertyExpression">The property reference expression</param>
        /// <param name="inputPropertyExpression">The input property reference expression</param>
        /// <typeparam name="T">The value type</typeparam>
        protected void Copy <T>(Expression <Func <TResult, Value <T> > > propertyExpression, Expression <Func <TInput, Value <T> > > inputPropertyExpression)
        {
            var specification = new CopyInputValuePropertyTranslateSpecification <TResult, T, TInput, TSchema>(propertyExpression, inputPropertyExpression);

            _specification.Add(specification);
        }