Uses the primary key value to attempt to find an entity tracked by the context. If the entity is not in the context then a query will be executed and evaluated against the data in the data source, and null is returned if the entity is not found in the context or in the data source. Note that the Find also returns entities that have been added to the context but have not yet been saved to the database.
Assembly: EntityFramework (in EntityFramework.dll)
'Declaration Public MustOverride Function Find ( _ ParamArray keyValues As Object() _ ) As Object 'Usage Dim instance As DbSet Dim keyValues As Object() Dim returnValue As Object returnValue = instance.Find(keyValues)
- Type: System.Object()
The values of the primary key for the entity to be found.
Return ValueType: System.Object
The entity found, or null.