Can anyone tell me the difference between these two lines of code:
Code:
Picture myPicture = e.Entity as Picture;
and
Code:
Picture myPicture = (Picture)e.Entity;
The first is the answer code give for this exercise, the second is the code given earlier in the chapter for the EntityDataSOurce_Inserting event.
Thanks.