Exemple #1
0
 /// <summary>
 /// Gets the value from the source of data.
 /// </summary>
 /// <param name="mapping">The mapping information used to lookup the source value.</param>
 /// <param name="sourceValue">The value at source.</param>
 /// <returns>True if the key existed.</returns>
 protected abstract object GetSourceValue(ModelMapping mapping);
Exemple #2
0
        //

        protected override object GetSourceValue(ModelMapping mapping)
        {
            return(this.SourceValuesAsDictionary.First(pair => pair.Key.Equals(mapping.SourceKeyName, this.KeyComparer)).Value);
        }