Skip to content

Instantly share code, notes, and snippets.

@filipececcon
Created July 25, 2017 16:28
Show Gist options
  • Save filipececcon/03056ae2234eaa15f3e7e88727bf4ab9 to your computer and use it in GitHub Desktop.
Save filipececcon/03056ae2234eaa15f3e7e88727bf4ab9 to your computer and use it in GitHub Desktop.
using Dapper.FluentMap.Dommel.Mapping;
using Domain.Entities;
namespace Repository.Mappers
{
public class PlayerMap : DommelEntityMap<Player>
{
public PlayerMap()
{
ToTable("TB_JOGADOR");
Map(x => x.Id).ToColumn("ID").IsKey();
Map(x => x.Age).ToColumn("NR_IDADE");
Map(x => x.Name).ToColumn("NM_JOGADOR");
Map(x => x.TeamId).ToColumn("ID_TIME");
Map(x => x.Team).Ignore();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment