Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save robinvanderknaap/5ba40a9ced0147f9dbcee0419792d12f to your computer and use it in GitHub Desktop.

Select an option

Save robinvanderknaap/5ba40a9ced0147f9dbcee0419792d12f to your computer and use it in GitHub Desktop.
var pocoFactory = AutoPocoContainer.Configure(x =>
{
x.Conventions(c => c.UseDefaultConventions());
x.AddFromAssemblyContainingType&ltUser>();
x.Include<User>()
.Setup(u => u.Email).Use<EmailAddressSource>()
.Setup(u => u.Firstname).Use<FirstNameSource>()
.Setup(u => u.Lastname).Use<LastNameSource>()
.Setup(u => u.DateOfBirth).Use<DateOfBirthSource>()
.Setup(u => u.Company).Use<CompanySource>();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment