O'Reilly Forums: Callbacks? - O'Reilly Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

Callbacks?

#1 User is offline   DexterMorgan 

  • New Member
  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 22-January 13

Posted 22 January 2013 - 05:42 PM

i am very new to entity framework but have read the first 19 chapters of this terrific book in the last 3 days and have learned a ton. just a question i have been thinking about (maybe it will be answered later in book?).

in an enterprise application at work sometimes it is required that user load files and save the contents to the database.
this could in say 3,000 object being saved to the database. these objects are passed to the business layer and are looped over passing each one to the data layer to be saved to the db. during this loop i provide a Callback that bubbles up to the UI to inform the user that its XX% complete.

i know calling SaveChanges() will send all the changes to the database but i dont see a way to provide a callback to update the UI with progress. is this something that is possible? or am i totally of the mark in my thinking? thanks in advance.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users