/// <summary> /// Attaches this instance. /// </summary> private void Attach( ) { lock ( _syncRoot ) { if (!IsAttached) { Key.Attach( ); Key.Value [RelationshipTypeId] = Value; IsAttached = true; } } }