5 Comments

  1. Tom Phan

    You should have business logic in your application to validate what can go into the database table. You can also add constraint on the table too however I think that is business logic and should let the app handle it.

  2. Joe

    With your solution I can set EmploymentStatus to “ToiletCleaner”.

    There is no enforcement of the data values !

  3. Frederik Gheysels

    That popular solution you mention has another (big) drawback:
    when you use the not-mapped property in a where -statement, this will not be propagated to the SQL statement, but that filter will be done in memory!

  4. Thanks for some other fantastic post. The place else may anyone get that kind of info in such a perfect means of writing? I have a presentation next week, and I am on the look for such info.

  5. Admiring the time and energy you put into your blog and detailed information you
    provide. It’s awesome to come across a blog every once in a while that isn’t the same outdated rehashed information.
    Wonderful read! I’ve bookmarked your site and I’m adding your RSS feeds
    to my Google account.

Leave a Reply