O'Reilly logo

Fluent Entity Framework by Rebecca M. Riordan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Data annotations

Image

The conventions used by the Entity Framework to create a database and model at runtime work pretty well if you aren’t doing anything too tricky and if you have control over the database schema. Unfortunately, those are a couple of rather big “ifs”. We saw in Chapter 4 that the model can vary a lot from the database schema, and Entity Framework conventions are pretty limited in how they can handle those complex model structures. Or you might be stuck using a legacy database designed by one of those people who equate obscurity with expertise. Do you really want to have to deal with properties named something like PKFKPplToCtct ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required