I can't compile db.Albums.Include(a => a.Genre).Include(a => a.Artist)

Jul 23, 2011 at 8:11 AM

ha all,

i downloaded the last version of this tuturial.

in page 63 , I write  to StoreManager below code ,

// GET: /StoreManager/

public ViewResult Index(){

var albums = db.Albums.Include(a => a.Genre).Include(a => a.Artist);

return View(albums.ToList());

}

but that is an error ,it said that "db.Albums.Include("String").Include("string");

but (a=>a.Genre AND a=>a.Artist) is not string .

What solution do you suggest?

Coordinator
Jul 23, 2011 at 4:32 PM
Can you post the full error message?

On Sat, Jul 23, 2011 at 1:11 AM, hamed_hossani <notifications@codeplex.com> wrote:

From: hamed_hossani

ha all,

i downloaded the last version of this tuturial.

in page 63 , I write to StoreManager below code ,

// GET: /StoreManager/

public ViewResult Index(){

var albums = db.Albums.Include(a => a.Genre).Include(a => a.Artist);

return View(albums.ToList());

}

but that is an error ,it said that "db.Albums.Include("String").Include("string");

but (a=>a.Genre AND a=>a.Artist) is not string .

What solution do you suggest?

Read the full discussion online.

To add a post to this discussion, reply to this email (mvcmusicstore@discussions.codeplex.com)

To start a new discussion for this project, email mvcmusicstore@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com