Created
July 8, 2017 17:45
-
-
Save robinvanderknaap/5ba40a9ced0147f9dbcee0419792d12f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var pocoFactory = AutoPocoContainer.Configure(x => | |
| { | |
| x.Conventions(c => c.UseDefaultConventions()); | |
| x.AddFromAssemblyContainingType<User>(); | |
| 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