Example #1
0
        public Delta(Dictionary <string, object> passedChangedJsonPropertyValuePaires)
        {
            _jsonPropertyMapper       = EngineContext.Current.Resolve <IJsonPropertyMapper>();
            _changedJsonPropertyNames = passedChangedJsonPropertyValuePaires;

            _mappingHelper.SetValues(PropertyValuePairs, Dto, typeof(TDto), ObjectPropertyNameValuePairs, true);
        }
Example #2
0
        public Delta(IJsonPropertyMapper jsonPropertyMapper, Dictionary <string, object> changedJsonPropertyNames)
        {
            _jsonPropertyMapper       = jsonPropertyMapper;
            _changedJsonPropertyNames = changedJsonPropertyNames;

            _mappingHelper.SetValues(PropertyValuePairs, Dto, typeof(TDto), ObjectPropertyNameValuePairs, true);
        }