Pro ASP.Net MVC 3 Entity Framework Sports Store tutorial

Posted by gary7 on Stack Overflow See other posts from Stack Overflow or by gary7
Published on 2011-11-26T17:47:16Z Indexed on 2011/11/26 17:51 UTC
Read the original article Hit count: 222

Filed under:

Following the tutorial in the book "Pro ASP.Net MVC 3 Entity Framework" in Chapter 9 - Image Uploads section; asks that the Product class be updated with two new columns - public byte ImageData, and public string ImageType. It also directs that the database be updated with these two columns via the server explorer.

After these updates, the discussion directs that the Entity Framework Conceptual Model be updated via the SportsStore.EDMX file. This file does not exist in the source code for the project, and was not used in the project to begin with. Obvious errata for the book.

Adding the ADO.NET Entity Data Model to the Project then overrides the EFProduct reposistory (conceptual model used throughout the project) which inherits from the interface IProductsRepository; and results in errors within the mapping.

If the project is debugged after the columns are added, an error is thrown related to the new added columns.

Has anyone resolved this issue in the project? I haven't found any solutions so far. Thanks!

© Stack Overflow or respective owner

Related posts about asp.net-mvc