Ejemplo n.º 1
0
        public PropertyMapping AddMapping(string sourceName, string destinationName)
        {
            if (mappingCollection == null)
            {
                mappingCollection = new PropertyMappingCollection();
            }

            PropertyMapping mapping = new PropertyMapping(sourceName, destinationName);

            mappingCollection.Add(mapping);
            return(mapping);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EntityConverter{TSource,TDestination}"/> class.
 /// </summary>
 /// <param name="mappingCollection">An <see cref="PropertyMappingCollection"/> containing source and destination
 /// property mappings.</param>
 public EntityConverter(PropertyMappingCollection mappingCollection) : this()
 {
     this.mappingCollection = mappingCollection;
 }