Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>The closest you'll be able to get is to use <a href="http://msdn.microsoft.com/en-us/library/system.data.entity.infrastructure.dbentityentry.reload%28v=vs.103%29.aspx" rel="nofollow"><code>DbEntityEntry.Reload</code></a> on your entity object, followed by using the <a href="http://msdn.microsoft.com/en-us/library/system.data.entity.infrastructure.dbentityentry.reference%28v=vs.103%29.aspx" rel="nofollow"><code>DbEntityEntry.Reference</code></a> and <a href="http://msdn.microsoft.com/en-us/library/system.data.entity.infrastructure.dbentityentry.collection%28v=vs.103%29.aspx" rel="nofollow"><code>DbEntityEntry.Collection</code></a> methods to get instances of <a href="http://msdn.microsoft.com/en-us/library/system.data.entity.infrastructure.dbreferenceentry%28v=vs.103%29.aspx" rel="nofollow"><code>DbReferenceEntry</code></a> and <a href="http://msdn.microsoft.com/en-us/library/system.data.entity.infrastructure.dbcollectionentry%28v=vs.103%29.aspx" rel="nofollow"><code>DbCollectionEntry</code></a> for each navigation property and collection on your entity, which you can use to reload those members. Something like this:</p> <pre><code>Public Overridable Sub Load(ByVal ProductID As Integer) ' Set primary key Me.ProductID = ProductID ' Reload scalar/complex properties Db.Entry(Me).Reload() ' Reload navigation properties Db.Entry(Me).Reference(Function(p) p.Entity).Load() Db.Entry(Me).Reference(Function(p) p.OtherEntity).Load() ' Reload navigation collections Db.Entry(Me).Collection(Function(p) p.ChildEntities).Load() Db.Entry(Me).Collection(Function(p) p.OtherChildEntities).Load() End Sub </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload