Default value in DocumentStore.For #2352
Unanswered
kanonkanin
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi.
I was wondering whether it is idea to set defaultvalue in DocumentStore.For
to _.AutoCreateSchemaObjects = AutoCreate.None;
I used linqpad with Marten, and did not think about this, with the result that it messed up our production.
Luckily we managed to get things back for most parts, but we had some very anxious hours last weekend.
When using tools like linqpad to test queries, it is very easy to download nuget packages, and similarly easy to forget this.
Beta Was this translation helpful? Give feedback.
All reactions