Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Property Attribute [BsonRequired] has no effect
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
U.Heinemann  
View profile  
 More options Nov 17 2012, 1:19 am
From: "U.Heinemann" <uh3...@gmail.com>
Date: Fri, 16 Nov 2012 22:19:08 -0800 (PST)
Local: Sat, Nov 17 2012 1:19 am
Subject: Property Attribute [BsonRequired] has no effect

I tried both ways, decorating the class property and alternatively using
the code. In my understanding, when someone tries to insert or update  and
the required field value is null, an error should be raised. But this is
not the case, the null value is inserted.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robert Stam  
View profile  
 More options Nov 17 2012, 9:01 am
From: Robert Stam <rob...@10gen.com>
Date: Sat, 17 Nov 2012 09:01:13 -0500
Local: Sat, Nov 17 2012 9:01 am
Subject: Re: [mongodb-user] Property Attribute [BsonRequired] has no effect

[BsonRequired] means something else: it means that documents read from the
database must have this field. It does not mean that the value can't be
null, just that the field must present.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »