RelatedEnd.IRelatedEnd.Add 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
IRelatedEnd.Add(IEntityWithRelationships) |
Adds an entity to the related end. This method works in exactly the same way as Add(object). It is maintained for backward compatibility with previous versions of IRelatedEnd. |
IRelatedEnd.Add(Object) |
Adds an entity to the related end. If the owner is attached to a cache then the all the connected ends are added to the object cache and their corresponding relationships are also added to the ObjectStateManager. The RelatedEnd of the relationship is also fixed. |
IRelatedEnd.Add(IEntityWithRelationships)
Adds an entity to the related end. This method works in exactly the same way as Add(object). It is maintained for backward compatibility with previous versions of IRelatedEnd.
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
void IRelatedEnd.Add (System.Data.Entity.Core.Objects.DataClasses.IEntityWithRelationships entity);
Sub Add (entity As IEntityWithRelationships) Implements IRelatedEnd.Add
Parameters
- entity
- IEntityWithRelationships
Entity instance to add to the related end
Implements
- Attributes
Applies to
IRelatedEnd.Add(Object)
Adds an entity to the related end. If the owner is attached to a cache then the all the connected ends are added to the object cache and their corresponding relationships are also added to the ObjectStateManager. The RelatedEnd of the relationship is also fixed.
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
void IRelatedEnd.Add (object entity);
Sub Add (entity As Object) Implements IRelatedEnd.Add
Parameters
- entity
- Object
Entity instance to add to the related end
Implements
- Attributes
Applies to
Entity Framework