O'Reilly logo

Code-First Development with Entity Framework by Sergey Barskiy

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

Additional Entity Framework features

Let's take a look at a few more features that do not neatly fit into anything we have talked about thus far. They are not frequently used, but it is important that developers know that these features exist.

Custom conventions

Sometimes, we want to make global changes that are applied to many entity types or tables. For example, we want all decimal fields be of a certain size by default, unless we specify otherwise. We may also want to globally set all string properties to be mapped to non-Unicode columns because our application is intended only for English-speaking users. We can accomplish such tasks by using the global configuration API or custom conventions. Inside conventions, we also have access to the public ...

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