Ejemplo 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>A <see cref="Task{TEntity}" /> that represents the asynchronous insert operation.</returns>
 public Task <TEntity> FindAsync(params object[] keyValues) => _dbSet.FindAsync(keyValues);