Closed mdryden closed 9 years ago
Assigned back to @bradpowell for followup review.
Assigned back to @pudds with new comments.
Assigned back to @bradpowell.
I've added IDs to all EF models which don't inherit from PostedItem base class.
I think we should be ready to merge this one now.
Merge it baby. I imagine we probably want to delete the branch but we've never talked about it yet so I'll leave it.
Some comments for the review
ICollection properties on models are virtual to utilize lazy-loading (see: http://www.entityframeworktutorial.net/EntityFramework4.3/lazy-loading-with-dbcontext.aspx)
BrewClubContext overrides OnModelCreating method in order to have inherited objects use the "Table Per Type" strategy. (see: http://weblogs.asp.net/manavi/inheritance-mapping-strategies-with-entity-framework-code-first-ctp5-part-2-table-per-type-tpt)