DevForce Help Reference
Add(T) Method


Adds an item to the list.
Syntax
'Declaration
 
Public Sub Add( _
   ByVal item As T _
) 
'Usage
 
Dim instance As RelatedEntityList(Of T)
Dim item As T
 
instance.Add(item)
public void Add( 
   T item
)

Parameters

item
Remarks
Note: If the list contains entities having a many-to-many relationship with the parent entity, the Add will create a new m:m relationship, which will be persisted to the database with the next SaveChanges.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

RelatedEntityList<T> Class
RelatedEntityList<T> Members

Send Feedback