This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Entity | |
{ | |
private int? id; | |
public int Id | |
{ | |
get | |
{ | |
return id.Value; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Type mapping api | |
/// </summary> | |
public interface IMapper | |
{ | |
/// <summary> | |
/// Maps the specified source type instance to destination type instance. | |
/// </summary> | |
/// <typeparam name="TSource">Source type.</typeparam> | |
/// <typeparam name="TDestination">Destination type.</typeparam> |