I am new to the entity framework and have a question, which maybe silly.
public static BlogSeries BLogSeries_Save( BlogSeries source )
using ( var ctx = new BlogEngineEntities() )
ctx.BlogSeriesSet.AddObject( source );
// What do i do to return the saved source object???
I am trying to create an n-tier application and therefore i am doing some crud operations and what not. I need to return the changed entity after this save operation as this is important as a few things have identity columns and timestamps and what not that are populated by the SQL Server when the item is updated.
My Question therefore is:
After the SaveChanges is run, what do i need to do to return the source object that has now been saved.