Exemplo n.º 1
0
 /// <summary>
 /// Finds an entity with the given primary key values. If found, is attached to the context and returned. If no entity is found, then null is returned.
 /// </summary>
 /// <param name="keyValues">The values of the primary key for the entity to be found.</param>
 /// <returns>The found entity or null.</returns>
 public TEntity Find(params object[] keyValues) => _dbSet.Find(keyValues);