IRelatedEnd.Attach Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Attach(IEntityWithRelationships) |
Defines a relationship between two attached objects. |
Attach(Object) |
Defines a relationship between two attached objects. |
Attach(IEntityWithRelationships)
Defines a relationship between two attached objects.
public void Attach (System.Data.Entity.Core.Objects.DataClasses.IEntityWithRelationships entity);
abstract member Attach : System.Data.Entity.Core.Objects.DataClasses.IEntityWithRelationships -> unit
Public Sub Attach (entity As IEntityWithRelationships)
Parameters
- entity
- IEntityWithRelationships
The object being attached. entity must implement IEntityWithRelationships .
Applies to
Attach(Object)
Defines a relationship between two attached objects.
public void Attach (object entity);
abstract member Attach : obj -> unit
Public Sub Attach (entity As Object)
Parameters
- entity
- Object
The object being attached.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework