Skip to content

Instantly share code, notes, and snippets.

@knorrus
Created July 16, 2014 14:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save knorrus/324fc437bca5f2e418fd to your computer and use it in GitHub Desktop.
Save knorrus/324fc437bca5f2e418fd to your computer and use it in GitHub Desktop.
using eChalk.Models.Implementations;
namespace eChalk.Repositories.Mappings
{
internal class UserMapping : AuditableClassMap<User>
{
public UserMapping()
{
Table("user");
Schema("public");
Id(x => x.Id).Column("id").Not.Nullable().GeneratedBy.Sequence("public.user_sequence_gen");
Map(x => x.FirstName).Column("name_first");
Map(x => x.LastName).Column("name_Last");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment