I have a database with id columns like BookId, AuthorId, etc. My code files, however, just have an Id property. I\'m attempting to convert parts of the program that use NH
By design, dapper does not have a mapping layer. One step down that road, and before we know what has happened all of a sudden we'll be drowning in configuration files. So: two options:
so either (sql):
select BookId as [Id], Name from Books
or (C#):
private int BookId { get { return Id; } set { Id = value; } } // just for dapper