I have noticed RavenDb doesn’t require entities to have default constructor. How does it create objects during queries then?
I have noticed RavenDb doesn’t require entities to have default constructor. How does it
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Idsa,
The way it works, when you have a ctor and a json, we try to match the ctor parameters to the json properties and see if we can make it work.
This behavior is built into Json.NET