The impedance mismatch

Image

Here are two ways of modelling our sample recipes. The one on this page uses the principles of relational database design. The model on page 17 uses the principles of OOA&D. They’re only examples, of course, and neither one can really be evaluated without knowing how the information will be used. A caterer who needs to scale recipes for any number of servings has very different requirements from, say, a cultural anthropologist who is primarily interested in the cultural context of the recipe, and these examples wouldn’t be particularly appropriate for either purpose. But they’ll do for our purposes.

A relational model

Get Fluent Entity Framework now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.