title: EF model property not null without [Required]
body: <p>Is it possible to have Entity framework generate a table, from a model, with the column marked as not null without using the <code>[Required]</code> annotation on the model's property?</p>
  
  <p>Reason:</p>
  
  <p>The object is posted to an api and I check <code>ModelState.IsValid</code> in the controller. The property is supposed to be generated server side and not come from outside, but if I have the property <code>[Required]</code> the <code>ModelState.IsValid</code> is false (in which case I return with a <code>BadRequest(ModelState);</code>).</p>
  
  <p>Can I tell EF to make the column not null in some other way?</p>
  
  <p>I guess another solution would be to expect another object(some sort of DTO) to be sent to the api and then do a mapping. But that object would look exactly the same save for this single property, which makes it seem a bit unnecessary, right?</p>