title: Validating an entity using generated EdmScalarProperty
body: <p>I am using Entity Framework, with the classes generated.</p>
  
  <p>The properties are generated with various attributes like this:</p>
  
  <pre><code>[EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
  </code></pre>
  
  <p>I know that MVC uses these attributes to apply validation, but I'm not using MVC.</p>
  
  <p>Is there any way to validate the entities using these properties?</p>