src/Shared/EntityFramework/Core/Objects/ObjectSet.cs
/// <summary>Attaches an object or object graph to the object context in the current entity set. </summary>
/// <param name="entity">The object to attach.</param>
Attaches an object or object graph to the object context in the current entity set.
Attaches an object or object graph to the object context in the current entity set .
public void Attach(TEntity entity)
        {
            Context.AttachTo(FullyQualifiedEntitySetName, entity);
        }
public void Attach ( TEntity entity ) { Context . AttachTo ( FullyQualifiedEntitySetName , entity ) ; }
Attaches an object or object graph to the object context in the current entity set.
Attaches an object or object graph to the object context in the current entity set .
// this method is expected to behave exactly like ObjectContext.AttachTo -- see devnote at the top of this class
entity
TEntity
The object to attach.
The object to attach .