Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

C# Entity Framework Migrations Getting Started with Using Migrations Populating Our Database with Seed Data

Tommy Clare
PLUS
Tommy Clare
Courses Plus Student 26,647 Points

Configuration.cs Seed Method Test Data - AverageRating issue

When pasting the test data into the Seed method the AverageRating assignment has an error mentioning that 'ComicBook' does not contain a definition for 'AverageRating'. I've tried a few things such as adding a property in the ComicBook Model, but can't seem to figure it out. In the video the error isn't present? Thanks in advance.

1 Answer

Tommy Clare
PLUS
Tommy Clare
Courses Plus Student 26,647 Points

Sorry, but please ignore this as I hadn't realised that I was being asked to download the 1.5 branch of the source code.