Skip to content

Instantly share code, notes, and snippets.

@filipececcon
Created July 25, 2017 16:29
Show Gist options
  • Save filipececcon/6ee5e0285dc7607c573f460ce69b0fbc to your computer and use it in GitHub Desktop.
Save filipececcon/6ee5e0285dc7607c573f460ce69b0fbc to your computer and use it in GitHub Desktop.
using Dapper.FluentMap.Dommel.Mapping;
using Domain.Entities;
namespace Repository.Mappers
{
public class TeamMap : DommelEntityMap<Team>
{
public TeamMap()
{
ToTable("TB_TIME");
Map(x => x.Id).ToColumn("ID").IsKey();
Map(x => x.Name).ToColumn("NM_TIME");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment