View Single Post
  #10 (permalink)  
Old March 10th, 2011, 06:30 AM
jlaracena jlaracena is offline
Registered User
 
Join Date: Mar 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi I have a question, the methods of the DinnerRepository
to create and delete dinners

What is the right way?

entities.Dinners.AddObject(dinner)

or

entities.AddObject(dinner)

in my case, I am following the book doing the same thing with another example.

if I put the first compiler gives me error, the method AddObject don´t exist for Dinners, in the second, no compiler errors but don´t save.

Help me please. I like the book but I stand by this motif