Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

17. Controlling Objects with ObjectState... > CurrentValues and OriginalValues

CurrentValues and OriginalValues

The CurrentValues property returns a CurrentValueRecord (an enhanced version of a DbDataRecord), which is an ObjectStateEntryDbUpdatableDataRecord, and it contains three things:

  • An array of the property values for the entity

  • A FieldCount property

  • A DataRecordInfo object containing the metadata about the entity, such as the name and type of each property

The OriginalValues property returns a DbDataRecord that contains the array of original property values and a FieldCount property. It does not include a DataRecordInfo object. Under the covers, this is an ObjectStateEntryDbDataRecord. The word Updatable is missing from this type. You can modify the current values but not the original values.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint