This project has moved and is read-only. For the latest updates, please go here.

Selecting the Correct constructor Without an Attribute?

Mar 29, 2013 at 5:32 PM
Edited Mar 29, 2013 at 5:33 PM
We have lots of entities with multiple constructors. But, they can all have a public or private parameter-less constructor. Is there a way to configure to always use this constructor without having to apply an attribute to it?

Note: In some cases we would have public parameterized ctors that should not be used, but would have a private ctor that should be used.
Apr 17, 2013 at 4:07 AM
Yes. ConstructorHandling.AllowNonPublicDefaultConstructor

It is covered in the documentation...